SMIL, CSS and JavaScript animation compared Three horizontal rails each carry a dot that slides back and forth with the same easing and timing. The top dot is animated by SMIL, the middle by CSS keyframes and the bottom by JavaScript. A small readout beside each label shows its current position. SMIL animate element CSS @keyframes JavaScript requestAnimationFrame