brandocms / jupiter

Frontend helpers
Other
0 stars 0 forks source link

Moonwalk: Named section forces child elements to reveal #43

Closed tmjoen closed 5 years ago

tmjoen commented 5 years ago

Don't add its children to IntersectionObserver, but observe the section itself

<section data-moonwalk-section="cards">
  <div></div>
  <div></div>
  <div></div>
</section>

Set the children to have a data-moonwalk-force, so when the section intersects we can timeline staggerTo?

tmjoen commented 5 years ago

This could be good for flickity sliders