Slide 1

Slide 1 text

Animation techniques and principles to make your web application designs more attractive. Kamila Gareeva LAB2023 INFORMATION TECHNOLOGIES

Slide 2

Slide 2 text

Contents: Principles of animation and coding examples; Usability of web animation; Animatable elements in web design.

Slide 3

Slide 3 text

Squash and stretch @-webkit-keyframes example { 0% { -webkit-transform: scaleY(1.0); } 50% { -webkit-transform: scaleY(1.2); } 100% { -webkit-transform: scaleY(1.0); } } http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#1

Slide 4

Slide 4 text

Timing and Motion In web design it can be easily adjusted with the ‘animation-duration property’, and the individual timings of animation using percentage values either. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#9

Slide 5

Slide 5 text

Anticipation @-webkit-keyframes example { 0% { -webkit-transform: translateY(-300px) scaleY(1.2); } 35% { -webkit-transform: translateY(-300px) scaleY(1.2); } /* Same position as 0% */ 65% { -webkit-transform: translateY(0px) scaleY(1.2); } /* Starts moving after 35% to this position */ 67% { -webkit-transform: translateY(10px) scaleY(0.8); } 85% { -webkit-transform: translateY(-100px) scaleY(1.2); } 100% { -webkit-transform: translateY(0px); } } http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#3

Slide 6

Slide 6 text

Staging The best way to use that principle in the web design is see that animation in context with all objects inside, background, text etc. The stage is also key to focusing attention. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#2

Slide 7

Slide 7 text

Follow Through and Overlapping Animation For web design laws of physics can also be applied. For animation objects that are falling down, gravity is necessary to be used. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#5

Slide 8

Slide 8 text

Straight Ahead Action and Pose to Pose CSS animation use the pose to pose technique, keyframes of action, and filling the intermediate frames automatically by browser. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#4

Slide 9

Slide 9 text

Slow In and Slow Out - ease-in: Slow at the beginning, and then speeds up. - ease-out: Fast at the beginning, and then slows to a stop. - ease-in-out: Starts slow, speeds up in the middle, and then slows to a stop. - linear: Moves at an even speed from start to finish. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#6

Slide 10

Slide 10 text

Arcs .ball-arc { -webkit-animation: ball-x 2.5s cubic-bezier(0, 0, 0.35, 1); } /* cubic-bezier here is to adjust the animation-timing speed. This example makes the ball take longer to slow down. */ @-webkit-keyframes ball-x { 0% { -webkit-transform: translateX(-275px); } 100% { -webkit-transform: translateX(0px); } } http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#7

Slide 11

Slide 11 text

Exaggeration @-webkit-keyframes wobble { 0%, 24%, 54%, 74%, 86%, 96%, 100% { -webkit-transform: scaleX(1.0); /* Make the ball a normal size at these points */ } 25%, 55%, 75% { -webkit-transform: scaleX(1.3) scaleY(0.8) translateY(10px); /* Points hitting the floor: squash effect */ } 30%, 60%, 80% { -webkit-transform: scaleX(0.8) scaleY(1.2);

Slide 12

Slide 12 text

/* Wobble inwards after hitting the floor */ } 75%, 87% { -webkit-transform: scaleX(1.2); /* Subtler squash for the last few bounces */ } 97% { -webkit-transform: scaleX(1.1); /* Even subtler squash for last bounce */ } } http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a- cartoon#10

Slide 13

Slide 13 text

Secondary action This action adds to and enriches the main action and adds more dimension to the character animation. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#8

Slide 14

Slide 14 text

Solid drawing The principle of solid drawing means taking into account forms in three- dimensional space. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#11

Slide 15

Slide 15 text

Appeal Character needs to be charismatic. http://www.fastcodesign.com/3030106/disneys-12-principles-of-animation-in-a-cartoon#12

Slide 16

Slide 16 text

‘‘Why web animation today is becoming really popular?’’ http://watb.co.uk/ http://clearstream.tv/ http://louisansa.com/project/omnisense http://briandelaney.com/

Slide 17

Slide 17 text

The elements that can be animated: perspective perspective-origin color opacity columns letter spacing text indent word spacing text decoration color text shadow background background color background position background size

Slide 18

Slide 18 text

Animation can breath life into static websites. Thank you for your attention!