What are CSS Transitions and How to Use Them

In a previous article, you learned the basic concepts of CSS animations and how to use them. We could say that transitions are a simplified form of animation with some differences between them, the form of triggering the animation being the most relevant one. 

Another difference is that transitions have only two states (initial and final state), whereas you can define multiple states for an animated element with the @keyframes rule. Transitions are triggered on an action, for example when hovering over an element, but animations can occur without a specific action, for example with an animation-delay after page load. 

In this tutorial, we are going to learn the basic concepts of CSS Transitions with a practical example. Additionally, you will also learn how to use an image sprite with CSS.  

Let’s start!



[[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]]
 •  0 comments  •  flag
Share on Twitter
Published on December 05, 2019 21:01
No comments have been added yet.