javascript - Scrollmagic Parallax sections and pinning combined -
i trying create page combines both:
http://scrollmagic.io/examples/advanced/parallax_sections.html
and
http://scrollmagic.io/examples/basic/simple_pinning.html
so scroll down, top of parallax parent attached bottom of spacer s1. when boundary between bottom of spacer , top of parallax parent reaches top of page, top of parallax parent pins top of page.
after this, next spacer s1 (with attached parallax parent same first) should slide on original pinned parallax parent. in same first, top of second parallax parent should pin top of page third pair can slide on , etc. many times sis necessary.
here codepen set up:
http://codepen.io/webbuild_steve/pen/jrvkea
// build scenes new scrollmagic.scene({triggerelement: "#parallax1"}) .settween("#parallax1 > div", {y: "100%", ease: linear.easenone}) .addindicators() .addto(controller);
Comments
Post a Comment