If an elements look changes when leaving expect transition

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the CSS-and-design category.

Last Updated: 2024-12-03

I noticed the style of a link only appeared when leaving the element but couldn't say what CSS code was the cause.

It turned out the cause was a transition property.

These activate when you go between a regular state and a pseudo class like :hover or :active - (i.e. when clicked on - or :focus (when tabbed to)