Lauritz Offe
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Lauritz Offe
-
-
Thank you for your answer
- 1
-
Hi,
for my Projekt in TYPO3 I need to use variables in my Animation / ScrollTrigger .
Somethin like that...
var myid1 = somefunction1
var myid2 = somefunction2
ScrollTrigger.create({
trigger: '#step-2',
start: 'top center',
onEnter: myid1,
onLeaveBack: myid2,
markers: false,
id: 'second-box' });
Is this even possible?
I don´t need to change the variables on the fly.Thanks in advance
Lauritz Offe
Variables in ScrollTrigger
in GSAP
Posted
The Solution was that is is possible to use js in an option field:
onEnter: () => {
//here you can use js
return someValue;
},