Question: what is the difference between transition and animation in css?
Answer: The most important difference between CSS transition and CSS animation is how they are triggered. A transition occurs when the element state or property is changed. ... While transitions are easier to use, the animations offer more control over how the states are animated.