Skip to content

The purpose of this exercise was to animate elements on a page using a third party library. ๐Ÿ–ผ ๐ŸŸก

Notifications You must be signed in to change notification settings

elemarmar/animated-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Animated template

cover2

Given a template (from tailwinds) I animated some elements of the page on scroll by using a third-party library called AOS.




Learning outcome


  1. Importing and using a third-party library
  2. Importance on how scripts are loaded (using async and defer attributes for <script>):
    • We use async if we don't care about execution order or if the script does not depend on another script.
    • We use defer at the beginning of the document, in the <head> element because we want to download the JS as soon as possible but we don't want it to be executed until all html is parsed ๐Ÿ‘‰๐Ÿป Use defer for scripts that have to be used once all html has been parsed
  3. Animating elements on a page on scroll



Process

This project was simple. I was using a landing template from tailwinds css and I followed the documentation of AOS library to add some smooth animations to some elements of the page.




About

The purpose of this exercise was to animate elements on a page using a third party library. ๐Ÿ–ผ ๐ŸŸก

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages