LottieFiles / lottie-interactivity

A small javascript library to enable interactivity with Lottie animations
https://lottiefiles.com/interactivity
MIT License
430 stars 55 forks source link

Scroll Trigger Start Options #111

Closed cengizilhan closed 1 year ago

cengizilhan commented 1 year ago

Overview

We are unable to determine at which viewport -height the scroll trigger will start.

Type

Motivation

https://codepen.io/sawacrow/pen/abQGoPR

If you delete the "first-section", the animation cannot work. Because the scroll trigger needs to descend from the top to work.

It can't start from %0 because I made an animation similar to this in the header.

ScrollTrigger should have options for when to start, for example: When above the Object, When below the object, Like in the middle of the object.

There is such an option in gsap.js and it is very useful. https://greensock.com/docs/v3/Plugins/ScrollTrigger start: "top top",

...

Labels

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.