I have a component which is wrapped in an if like so:
(if @(subscribe [:some-condition])
[:div.show-me "Show me"]
)
And I want to apply an animation to the show-me div as soon as it is displayed, i.e., when the condition is true. Now, I know how to apply transitions in css using selectors like :hover, and :active, for example:
.show-me {
transition: all 1s ease-in-out;
}
.show-me:hover {
transform: scale (1.1em);
}
Will scale the div when hovered over.
But how to scale, for example, a div as soon as it is shown?