Abc of CSS animation

13

Click here to load reader

Transcript of Abc of CSS animation

Page 1: Abc of CSS animation

Getting Started with CSS Animations

Adrian Sandu, @adysandu26 January 2017, DublinCSS

Page 2: Abc of CSS animation

Long time ago,In a web far far away

Page 3: Abc of CSS animation

<marquee> and <blink>

CodePen example: https://codepen.io/AdrianSandu/pen/PWmEGd

Page 4: Abc of CSS animation

Pseudo-classes ‘:hover’, ‘:focus’, ‘:active’

CodePen example: https://codepen.io/AdrianSandu/pen/bgrEMQ

Page 5: Abc of CSS animation

Add a sprinkle of transitions...

CodePen example: https://codepen.io/AdrianSandu/pen/VPzRVY

Page 6: Abc of CSS animation

Going wild with transitions...

CodePen example: https://codepen.io/AdrianSandu/pen/jyLRyv

Page 7: Abc of CSS animation

“True” animations

CodePen example: https://codepen.io/AdrianSandu/pen/PWmEGd

Page 8: Abc of CSS animation

The anatomy of animations

CodePen example: http://codepen.io/AdrianSandu/pen/EZvzWW

Page 9: Abc of CSS animation

What does all this mean???

Reference: https://css-tricks.com/almanac/properties/a/animation/

Page 10: Abc of CSS animation

Possible values

Reference: https://css-tricks.com/almanac/properties/a/animation/

Page 11: Abc of CSS animation

What can you animate?

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties

Page 12: Abc of CSS animation

High Performance Animations

Reference: https://www.html5rocks.com/en/tutorials/speed/high-performance-animations/

Page 13: Abc of CSS animation

Questions?