Hi guys!
Please help me! I am trying to make objects interact with mouse movement.
And with gsap it kind of works with depth as a constant,
https://codepen.io/vicnovo/pen/qBorjPQ
but I want to take data-depth setting and set for each object
I guess it will be easier to go with timeline, but for some reason with time line it doesn't play and I stuck, don't understand why it doesn't play ((
here is the codepan version with timeline effort, it plays just one time.
I understand I suppose to put objects to array outside of function with event listener and change somehow settings for each layer inside of function and after that play time line, but can't get it how to do it the right way .. please, help!!