sak
Community Answers
-
sak's post in How to access element index when passing list of elements in ".to" or ".from" etc was marked as the answer
My bad, figured it out from the docs -
timeline.from([...featureCards], { opacity: 0, y: (idx) => 60 * Math.pow(-1, idx), ease: "power3.out", duration: 0.7, stagger: 0.3, });