I\'m trying to accomplish the effect of when linking to a target element on another page, the target is highlighted and then fades to the default page color, aka white.
This is close to the effect you described
:target { border-radius: 3px; animation: highlight 1000ms ease-out; } @keyframes highlight { 0% { background-color: red; } 100% { background-color: white; } }
Required Click me