I'm trying to port over my site calexo.co from ScrollMagic to ScrollTrigger. The hardest part to port has been the product section, which works as follows:
Parent wrapper set to pin at "top top"
its children are the products. Each products position is set to absolute, that makes them stack on top of one another.
Additionally each product has two timelines each:
one to animate in/out images/copy
another to animate copy bubbles (see calexo link)
To achieve this in scrollmagic I would use the "offset" property. So the first product and its first timeline's offset gets '0' (plays right when pinned) second timeline's offset gets 100%. Then the next products first timeline get's an offset incrementally set to 200% and it's second 300%, so on and so forth.
I've tried doing this with setting the start/end to no avail but I might be missing a detail here. Here's the basics
Pinning the wrapper for 700% (total of the products. below)
Products start and end get:
Product 1:
timeline 1:
start: "top top"
end: "100%"
timeline 2
start: "200%"
end: "300%"
Product 2:
timeline 1:
start: "400%"
end: "500%"
timeline 2:
start: 600%
end: 700%
I've been trying to put together a codepen, but so far haven't been able to get anything working but as soon as I do, I'll add here. Thanks for any input.