Problem Statement
What is the difference between CSS transitions and animations?
Explanation
Transitions occur when a property changes, like hover. Animations run automatically through keyframes. Transitions handle simple state changes; animations handle continuous or complex sequences.
Code Solution
SolutionRead Only
div:hover { transition: background 0.3s; } @keyframes move { 0% { left:0; } 100% { left:100px; } }