Skip to content

Instantly share code, notes, and snippets.

@DevGW
Created December 29, 2022 13:43
Show Gist options
  • Save DevGW/7a2f8d49643b6d9a91aa3396740e5523 to your computer and use it in GitHub Desktop.
Save DevGW/7a2f8d49643b6d9a91aa3396740e5523 to your computer and use it in GitHub Desktop.
AOS element animation
// from the Node library: aos
// syntax
<div
data-aos="fade-up"
data-aos-offset="200"
data-aos-delay="50"
data-aos-duration="1000"
data-aos-easing="ease-in-out"
data-aos-mirror="true"
data-aos-once="false"
data-aos-anchor-placement="top-center"
>
</div>
// Fade animations:
fade-up
fade-down
fade-left
fade-right
fade-up-right
fade-up-left
fade-down-right
fade-down-left
// Flip animations:
flip-up
flip-down
flip-left
flip-right
// Slide animations:
slide-up
slide-down
slide-left
slide-right
// Zoom animations:
zoom-in
zoom-in-up
zoom-in-down
zoom-in-left
zoom-in-right
zoom-out
zoom-out-up
zoom-out-down
zoom-out-left
zoom-out-right
// Anchor placements:
top-bottom
top-center
top-top
center-bottom
center-center
center-top
bottom-bottom
bottom-center
bottom-top
// Easing functions:
linear
ease
ease-in
ease-out
ease-in-out
ease-in-back
ease-out-back
ease-in-out-back
ease-in-sine
ease-out-sine
ease-in-out-sine
ease-in-quad
ease-out-quad
ease-in-out-quad
ease-in-cubic
ease-out-cubic
ease-in-out-cubic
ease-in-quart
ease-out-quart
ease-in-out-quart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment