SlideShare a Scribd company logo
1 of 50
Download to read offline
Animate this! Principles and practice
in UI animation
Tuesday, March 21, 17
Who the heck are
you? I’m Mario Noble
• Your friendly neighborhood
SCWDD Organizer
• Web Designer / Front end
developer
• UX Designer
• Jack of all digital trades
• SoCal cliche
Tuesday, March 21, 17
Why Animation in UI?
Tuesday, March 21, 17
Movement compels attention.
Tuesday, March 21, 17
Too much movement distracts.
Tuesday, March 21, 17
UI animation is a means to an end
not a means unto itself.
Tuesday, March 21, 17
Focus
Tuesday, March 21, 17
Focus
Tuesday, March 21, 17
Orientation
Tuesday, March 21, 17
Orientation
Tuesday, March 21, 17
Orientation
Tuesday, March 21, 17
Feedback
Tuesday, March 21, 17
Feedback
Tuesday, March 21, 17
Branding
Tuesday, March 21, 17
Branding
Tuesday, March 21, 17
Animation is the depiction of change over time.
Tuesday, March 21, 17
Animation is the depiction of change over time.
Tuesday, March 21, 17
12 Basic Principles of
Animation
https://vimeo.com/93206523
Tuesday, March 21, 17
A few key points...
Tuesday, March 21, 17
Tuesday, March 21, 17
Attention is a resource.
Tuesday, March 21, 17
A rule of thumb is to keep animations between
200-500ms.
Tuesday, March 21, 17
Animations can occur not only in transition on
screen...
Tuesday, March 21, 17
...and off screen...
Tuesday, March 21, 17
...but also in place.
Tuesday, March 21, 17
Eye flow...
Tuesday, March 21, 17
Eye flow...
and sequencing are key.
Tuesday, March 21, 17
Keep things consistent.
Tuesday, March 21, 17
Keep things consistent.
except where it makes sense to not be...
Tuesday, March 21, 17
Remember to integrate animation into your design
process just as you would the use of color.
★ Business and user priorities
★ IA
★ Storyboarding
★ Prototypes
★ Styleguides
★ User research
Tuesday, March 21, 17
Keep Accessibility in mind.
Tuesday, March 21, 17
Execution - The nitty gritty of making it happen.
★CSS transitions and animation
★jQuery
★Velocity.js
★Greensock (aka GSAP)
★Javascript Animation API
★Framework specific libraries (Angular, Polymer, React, native iOS/Android, etc.)
★DIY custom code
★I wish I could say Flash...
Tuesday, March 21, 17
There is no one right way.
Use whatever works for you best.
Tuesday, March 21, 17
We’re choosing GSAP to demo because it’s:
★Mature
★Platform agnostic
★Browser stable
★Plays nice
★Consistent handling of transforms and SVGs
★Full featured
Tuesday, March 21, 17
GSAP “Ecosystem”
★TweenLite
★TweenMax *
★TimelineLite
★TimelineMax
* TweenMax is the one you want to use starting out since it all the others built in.
Optimize as needed.
Plus various Plugins and Extensions
Tuesday, March 21, 17
A word about their licensing structure.
It’s free if you do not sell products or services made with it to multiple end users.
A single client is fine. By the way, I’m not affiliated with the company in any way...
Tuesday, March 21, 17
GSAP Basics (first we’ll tell, then we’ll show)
Tuesday, March 21, 17
TweenMax.method(target, duration, {vars},
position);
Example: TweenMax.to(box, 0.5, {x: 50, y:100});
Position is used in methods like staggerFrom
Tuesday, March 21, 17
Targeting
★ Can use any class or html tag (i.e. .my-class - uses queryselectorall)
★ getElementbyID
★ jQuery ($)
★ a var or array of references
Tuesday, March 21, 17
Duration
★ Usually in seconds
★ Can be frames
Tuesday, March 21, 17
Vars
★ Can be single and multiple css properties - properties should be converted from
using hyphens to camel case (e.g. border-radius is borderRadius)
★ Also uses special properties like easing, repeat, delay, timeline controls
★ GSAP callbacks and custom callbacks
Tuesday, March 21, 17
Position
★ Sets when the tween occurs in the timeline in terms of seconds or frames.
Tuesday, March 21, 17
also...
Tuesday, March 21, 17
Easing
★ Default
★ Out of the box
★ Custom
★ Let’s check out the visualizer
Tuesday, March 21, 17
Timeline fun
★ Reversing
★ From versus To
★ Staggers (aka offsets)
★ Yoyo
★ Timescale
Tuesday, March 21, 17
Multiple Animations
★ using new
★ standalone animations
★ added / chained animations
★ modifying multiple animations at once
Tuesday, March 21, 17
OK, let’s try this.
Tuesday, March 21, 17
Summary
★ Form follows function
★ Focus, Orientation, Feedback, Branding
★ Integrate Animation into the overall business, design and dev process
★ Animation frameworks will target change in target properties and their sequence
over time
★ Realistic animation often uses some form of easing
Tuesday, March 21, 17
Resources
★ Designing Interface Animation
★ The Illusion of Life
★ Greensock GSAP site
★ I Hate Tomatoes
★ Velocity JS
★ Mozilla’s JS Animation API
Tuesday, March 21, 17
Q&A / Sharing
Tuesday, March 21, 17

More Related Content

More from Mario Noble

Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworksMario Noble
 
Styling on steroids
Styling on steroidsStyling on steroids
Styling on steroidsMario Noble
 
Testing html5 meetup slideshare
Testing html5 meetup slideshareTesting html5 meetup slideshare
Testing html5 meetup slideshareMario Noble
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty grittyMario Noble
 
Git presentation
Git presentationGit presentation
Git presentationMario Noble
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentationMario Noble
 
Responsive design presentation
Responsive design presentationResponsive design presentation
Responsive design presentationMario Noble
 

More from Mario Noble (9)

Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworks
 
Styling on steroids
Styling on steroidsStyling on steroids
Styling on steroids
 
Testing html5 meetup slideshare
Testing html5 meetup slideshareTesting html5 meetup slideshare
Testing html5 meetup slideshare
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Git presentation
Git presentationGit presentation
Git presentation
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Responsive design presentation
Responsive design presentationResponsive design presentation
Responsive design presentation
 
Html5 css3pres
Html5 css3presHtml5 css3pres
Html5 css3pres
 
Cms pres
Cms presCms pres
Cms pres
 

Recently uploaded

Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Recently uploaded (20)

Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

UI Animation principles and practice with GSAP