Open Randyhuls opened 9 years ago
just starting with Scrollmagic, and this is what i need as well..
$.each(panels, function(i, el) {
var scene = new ScrollMagic.Scene({
duration: 220,
triggerElement: '.hentry',
loglevel: 3,
triggerHook: 0
})
.setPin('.panel')
.addTo(controller);
});
but i get nested div with scollmagic on the first .panel in the page
Anyone?
So I'm trying to create a new scene with the same tween for each element of a class, but for some reason the starting position for all the instances is the first element in the list. The idea is that when you pass each element, they do a slight turn in angle. I'm staring myself blind at it, but haven't been able to fix it thus far. Any suggestions perhaps? Thanks in advance!