ScrollMovie

0
51
ScrollMovie


ScrollMovie("#app", { tracks, getImage, imageSize, scrollsPerImage });
[
{
html: "<h1>ScrollMovie.js</h1>Hello ScrollMovie.js",
timing: {
start: 0,
end: 5000
},
buttonLabel: "start",
animation: {
start: "scroll-movie__track-view_start",
end: "scroll-movie__track-view_end"
}
},
...
]

You can specify the appearance timing of the each section with the
timing property. eg.) End section will appear when scrolled 7000px
(scrollPerImages * number of shown images) and disappear when scrolled
12000px (scrollPerImages * number of shown images).



Source link

Leave a reply

Please enter your comment!
Please enter your name here