Site Building
Scroll Animation
Choosing Presets
Types of Presets:
Continuously animating
Fade in
Fade out
Fade in-out
Fly in
Fly out
Fly in-out
Helix
Conveyor
Rebound
Animates only on entry
Fade up
Scale up
Twist up
Loose hinge
Blur in
Color in
Tuning Presets
For more in-depth tweaking, use to access the CSS Snippet.
Each preset is powered by a set of @keyframes to be rewritten as you see fit. Use properties designed for animation like transform and filter, rather than layout properties like height.
@keyframes scrollAnimationHelix-3 {
0% { transform: perspective(2000px) rotateY(90deg) rotateZ(3deg); }
100% { transform: perspective(2000px) rotateY(-90deg) rotateZ(-3deg); }
}
To change the transform-origin, incorporate it into your animation like this:
@keyframes scrollAnimationHelix-3 {
0% { transform-origin: top left; [...other properties] }
100% { transform-origin: top left; [...other properties] }
}
Two variables determine the animation type and timing curve (cubic-bezier):
media-item {
--scroll-animation-mode: animation; // or 'transition'
--scroll-animation-timing: linear; // try 'ease' or 'cubic-bezier()'
}
Note that custom keyframes and variables are overwritten once a new preset or intensity is selected.