How can i combine these arrays elements together gsap, scroll trigger, vanilla js
Hello I am working on combining these elements together. I am not are how I can just scroll them together based on texts element height that I have ?
How do I combine those arrays of elements
5 Replies
don't spread it till you combine them*
also a better way could be one ScrollTrigger with stagger 😄
I don't quite know what you are doing but just giving ya options.
codepens are best if you can put one together.
sideNote: you have invalid syntax with the
const boxes:
andconst background:
Thank you for the information
however I need both of them from index[0] to work together
I want to animated two thing in the same time but both of them need to toggle a class in the same time
Look at my reply in FrontEnd Horse