Skip to content

Use GSAP ScrollTrigger to scroll through a Lottie animation

Notifications You must be signed in to change notification settings

gnacoding/ScrollLottie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

ScrollLottie

Use GSAP ScrollTrigger to scroll through a Lottie animation with your mouse or scrollbar

Dependencies (you will need to run these yourself for it to work)

Codepen demo

https://codepen.io/chrisgannon/pen/7e302171605cbc4274ce44733189ffe9

Useage

//ScrollLottie (target: String, jsonPath: String, easeDuration: Number, speed: String "fast" | "medium" | "slow")

ScrollLottie({
 target: '#animationWindow',
 path: 'https://assets.codepen.io/35984/NASA_Worm_logo_scrollTrigger.json', 
 duration: 4, 
 speed: 'slow'
})

About

Use GSAP ScrollTrigger to scroll through a Lottie animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%