CSS Animations
BROWSER APIS
Transitions
• Pseudo-classes:
:hover, :active, :focus,
:checked, :disabled
• Media-queries
• Can be triggered by
Javascript
Triggered by user
Web Animations API
BROWSER APIS
Browser Support: caniuse.com/#feat=web-animation
W3C Status: Working Draft
Polyfill: github.com/web-animations/web-animations-js
Physics
Write your own physics
• Time Based Animation (time deltas)
• https://www.viget.com/articles/time-based-animation
• Kinematic Formulas (long time deltas)
• (there's a great lesson on Khan Academy)
• 5 Minute Physics by David DeSandro
• https://www.youtube.com/watch?v=n6FKT-KafRk
Good for low-level techniques: Vanilla Javascript, P5, etc.
Tweening / Keyframes
Beginning State End State
color, width, height, opacity, rotation, x-position, y-position,
shadow, font-size, padding, margin, line-height, and more.
Tweening / Keyframes
• SMIL
• Velocity
• Greensock
• CSS Keyframes
• Web Animations API
Most of the 12 ways!
• Mo.js
• Anime
• jQuery
• D3
• Flash