SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
Web Animation
Techniques for 2017
A Comparison
Assumptions
• You don’t want animations to slow down your website
• You want it to work for as many people as possible
• You want the code to be maintainable
• You are most likely using React, in 2017
Considerations
• Fidelity: How good does the animation look?
• Browser Compatibility: How many people can see it?
• Performance: How does it affect the speed of the website?
• Ease of Implementation: How easy is it to create and maintain?
Approaches
CSS animations
with HTML
CSS animations
with SVG
GIF animation HTML5 video SVG animation
with Javascript
Lightweight Mediumweight Heavyweight
Lightweight Approaches
with CSS
CSS animations
with HTML
CSS animations
with SVG
“CSS animations has had a bit of a
resurgence lately likely because it’s the
easiest way to go for animations in React.
In terms of real-world animations on the
web, sometimes CSS is Occam’s Razor.”
– Sarah Drasner, author of “SVG Animations”
CSS animations
with HTML
• Fidelity: Only the most basic animations can be
achieved, but the animation scales to any screen size.
• Browser Compatibility: The most widely-supported. If
CSS animation isn’t supported by a browser, it
degrades gracefully to a static image.
• Performance: Because it’s just code, the animation is
very lightweight and doesn’t impact loading times.
• Ease of Implementation: Easy to implement and
maintain. Recommended for use with React.
CSS animations
with SVG
• Fidelity: SVG allows for more control over graphics and
the animation scales to any screen size
• Browser Compatibility: Both CSS animation and SVG
are widely supported
• Performance: Because it’s just code, the animation is
very lightweight and doesn’t impact loading times
• Ease of Implementation: Browser inconsistencies may
require some development effort to address.
Recommended for use with React.
Mediumweight Approaches
with GIF
GIF Animation
• Fidelity: Extensive control over graphics and effects, but there
is no control over playback. It comes in a fixed size.
• Browser Compatibility: The oldest image format on the web.
You won’t run into compatibility issues with it
• Performance: It’s a performance nightmare. The team that
built Safari found that “GIFs can be up to twelve times as
expensive in bandwidth and twice as expensive in energy use.
It’s so expensive that many of the largest GIF providers have
been moving away from GIFs and toward the <video> element.”
• Ease of Implementation: Requires pre-production by
designers, changes cannot be made in code.
Heavyweight Approaches
with Javascript or Video
HTML5 Video
• Fidelity: Extensive control over graphics, sequencing,
and effects, but no control over timing beyond playing
and pausing. It comes in a fixed size.
• Browser Compatibility: Video is widely supported but
control over playback on mobile is limited
• Performance: Video files, even compressed, will make
a significant impact on loading times
• Ease of Implementation: Requires pre-production by
designers, changes cannot be made in code. Requires
custom video hosting to be used as part of the UI.
SVG animation
with Javascript
• Fidelity: Complete control over every aspect of the
animation including sequencing, timing, scale.
• Browser Compatibility: Browser support varies
depending on Javascript library used
• Performance: Additional Javascript code will make a
slight impact on loading times and might slow down
some low-end devices
• Ease of Implementation: Requires considerable effort
to implement, especially with React, as there are no
out-of-the-box solutions.
References
• CSS-Tricks, SVG Animation and CSS Transforms: A Complicated
Love Story. https://css-tricks.com/svg-animation-on-css-transforms/
• Sarah Drasner, A Comparison of Animation Technologies. https://css-
tricks.com/comparison-animation-technologies/
• Rachel Nabors, Web Animation Past, Present, and Future. https://
alistapart.com/article/web-animation-past-present-and-future
• Webkit Blog, New <video> Policies for iOS. https://webkit.org/blog/6784/
new-video-policies-for-ios/

Contenu connexe

Tendances

Iseltech17 - Single Page Applications
Iseltech17 - Single Page ApplicationsIseltech17 - Single Page Applications
Iseltech17 - Single Page ApplicationsMonica Rodrigues
 
David Szetela — PPC vs SEO
David Szetela — PPC vs SEODavid Szetela — PPC vs SEO
David Szetela — PPC vs SEOSemrush
 
Improving editors' lives with Neos CMS
Improving editors' lives with Neos CMSImproving editors' lives with Neos CMS
Improving editors' lives with Neos CMSSebastian Helzle
 
The Thick Front-End
The Thick Front-EndThe Thick Front-End
The Thick Front-EndJeff Dickey
 
Steve Bailey — Core Web Vitals & Roadblocks to Success
Steve Bailey — Core Web Vitals & Roadblocks to SuccessSteve Bailey — Core Web Vitals & Roadblocks to Success
Steve Bailey — Core Web Vitals & Roadblocks to SuccessSemrush
 
How to Create a Photography Website
How to Create a Photography WebsiteHow to Create a Photography Website
How to Create a Photography Websitenor_nilam
 

Tendances (6)

Iseltech17 - Single Page Applications
Iseltech17 - Single Page ApplicationsIseltech17 - Single Page Applications
Iseltech17 - Single Page Applications
 
David Szetela — PPC vs SEO
David Szetela — PPC vs SEODavid Szetela — PPC vs SEO
David Szetela — PPC vs SEO
 
Improving editors' lives with Neos CMS
Improving editors' lives with Neos CMSImproving editors' lives with Neos CMS
Improving editors' lives with Neos CMS
 
The Thick Front-End
The Thick Front-EndThe Thick Front-End
The Thick Front-End
 
Steve Bailey — Core Web Vitals & Roadblocks to Success
Steve Bailey — Core Web Vitals & Roadblocks to SuccessSteve Bailey — Core Web Vitals & Roadblocks to Success
Steve Bailey — Core Web Vitals & Roadblocks to Success
 
How to Create a Photography Website
How to Create a Photography WebsiteHow to Create a Photography Website
How to Create a Photography Website
 

Similaire à CSS Animations Best for React Websites

Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practicesmintersam
 
The Future of HTML5 Motion Design
The Future of HTML5 Motion DesignThe Future of HTML5 Motion Design
The Future of HTML5 Motion DesignTerry Ryan
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web designNate Walton
 
A Day Building Fast, Responsive, Extensible Single Page Applications
A Day Building Fast, Responsive, Extensible Single Page ApplicationsA Day Building Fast, Responsive, Extensible Single Page Applications
A Day Building Fast, Responsive, Extensible Single Page ApplicationsChris Love
 
The high resolution web
The high resolution webThe high resolution web
The high resolution webPatric Lanhed
 
Responsive Web Design
Responsive Web Design Responsive Web Design
Responsive Web Design CLEVER°FRANKE
 
S. Responsive Web Design
S. Responsive Web DesignS. Responsive Web Design
S. Responsive Web Designshelly3160
 
2014 Android and iOS Design Trends
2014 Android and iOS Design Trends2014 Android and iOS Design Trends
2014 Android and iOS Design TrendsRapidValue
 
SVG Strikes Back
SVG Strikes BackSVG Strikes Back
SVG Strikes BackMatt Baxter
 
Responsive web design
Responsive web designResponsive web design
Responsive web designZeeshan Khan
 
Images blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente FuentesImages blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente FuentesWey Wey Web
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignJulia Vi
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work EverywhereUsing Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work EverywhereChris Love
 
FITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web DesignFITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web DesignFrédéric Harper
 
Hacking to be performant
Hacking to be performantHacking to be performant
Hacking to be performantApoorv Saxena
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Chris Love
 

Similaire à CSS Animations Best for React Websites (20)

Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practices
 
Web Images, The Right Way
Web Images, The Right WayWeb Images, The Right Way
Web Images, The Right Way
 
Larson CGM and SVG Webinar
Larson CGM and SVG WebinarLarson CGM and SVG Webinar
Larson CGM and SVG Webinar
 
The Future of HTML5 Motion Design
The Future of HTML5 Motion DesignThe Future of HTML5 Motion Design
The Future of HTML5 Motion Design
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web design
 
Design responsively
Design responsivelyDesign responsively
Design responsively
 
A Day Building Fast, Responsive, Extensible Single Page Applications
A Day Building Fast, Responsive, Extensible Single Page ApplicationsA Day Building Fast, Responsive, Extensible Single Page Applications
A Day Building Fast, Responsive, Extensible Single Page Applications
 
The high resolution web
The high resolution webThe high resolution web
The high resolution web
 
Responsive Web Design
Responsive Web Design Responsive Web Design
Responsive Web Design
 
S. Responsive Web Design
S. Responsive Web DesignS. Responsive Web Design
S. Responsive Web Design
 
2014 Android and iOS Design Trends
2014 Android and iOS Design Trends2014 Android and iOS Design Trends
2014 Android and iOS Design Trends
 
SVG Strikes Back
SVG Strikes BackSVG Strikes Back
SVG Strikes Back
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Images blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente FuentesImages blast off at the speed of Jamstack! - Alba Silvente Fuentes
Images blast off at the speed of Jamstack! - Alba Silvente Fuentes
 
Java servlets and CGI
Java servlets and CGIJava servlets and CGI
Java servlets and CGI
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work EverywhereUsing Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 
FITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web DesignFITC - 2012-04-23 - Responsive Web Design
FITC - 2012-04-23 - Responsive Web Design
 
Hacking to be performant
Hacking to be performantHacking to be performant
Hacking to be performant
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 

Dernier

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
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
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
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
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Dernier (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
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
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

CSS Animations Best for React Websites

  • 1. Web Animation Techniques for 2017 A Comparison
  • 2. Assumptions • You don’t want animations to slow down your website • You want it to work for as many people as possible • You want the code to be maintainable • You are most likely using React, in 2017
  • 3. Considerations • Fidelity: How good does the animation look? • Browser Compatibility: How many people can see it? • Performance: How does it affect the speed of the website? • Ease of Implementation: How easy is it to create and maintain?
  • 4. Approaches CSS animations with HTML CSS animations with SVG GIF animation HTML5 video SVG animation with Javascript Lightweight Mediumweight Heavyweight
  • 6. CSS animations with HTML CSS animations with SVG “CSS animations has had a bit of a resurgence lately likely because it’s the easiest way to go for animations in React. In terms of real-world animations on the web, sometimes CSS is Occam’s Razor.” – Sarah Drasner, author of “SVG Animations”
  • 7. CSS animations with HTML • Fidelity: Only the most basic animations can be achieved, but the animation scales to any screen size. • Browser Compatibility: The most widely-supported. If CSS animation isn’t supported by a browser, it degrades gracefully to a static image. • Performance: Because it’s just code, the animation is very lightweight and doesn’t impact loading times. • Ease of Implementation: Easy to implement and maintain. Recommended for use with React.
  • 8. CSS animations with SVG • Fidelity: SVG allows for more control over graphics and the animation scales to any screen size • Browser Compatibility: Both CSS animation and SVG are widely supported • Performance: Because it’s just code, the animation is very lightweight and doesn’t impact loading times • Ease of Implementation: Browser inconsistencies may require some development effort to address. Recommended for use with React.
  • 10. GIF Animation • Fidelity: Extensive control over graphics and effects, but there is no control over playback. It comes in a fixed size. • Browser Compatibility: The oldest image format on the web. You won’t run into compatibility issues with it • Performance: It’s a performance nightmare. The team that built Safari found that “GIFs can be up to twelve times as expensive in bandwidth and twice as expensive in energy use. It’s so expensive that many of the largest GIF providers have been moving away from GIFs and toward the <video> element.” • Ease of Implementation: Requires pre-production by designers, changes cannot be made in code.
  • 12. HTML5 Video • Fidelity: Extensive control over graphics, sequencing, and effects, but no control over timing beyond playing and pausing. It comes in a fixed size. • Browser Compatibility: Video is widely supported but control over playback on mobile is limited • Performance: Video files, even compressed, will make a significant impact on loading times • Ease of Implementation: Requires pre-production by designers, changes cannot be made in code. Requires custom video hosting to be used as part of the UI.
  • 13. SVG animation with Javascript • Fidelity: Complete control over every aspect of the animation including sequencing, timing, scale. • Browser Compatibility: Browser support varies depending on Javascript library used • Performance: Additional Javascript code will make a slight impact on loading times and might slow down some low-end devices • Ease of Implementation: Requires considerable effort to implement, especially with React, as there are no out-of-the-box solutions.
  • 14. References • CSS-Tricks, SVG Animation and CSS Transforms: A Complicated Love Story. https://css-tricks.com/svg-animation-on-css-transforms/ • Sarah Drasner, A Comparison of Animation Technologies. https://css- tricks.com/comparison-animation-technologies/ • Rachel Nabors, Web Animation Past, Present, and Future. https:// alistapart.com/article/web-animation-past-present-and-future • Webkit Blog, New <video> Policies for iOS. https://webkit.org/blog/6784/ new-video-policies-for-ios/