Skip to content
Snippets Groups Projects
Commit 7c928a1d authored by Zihan Zhang's avatar Zihan Zhang
Browse files

Update static/divflow.js

parent 37d81688
No related branches found
Tags countdown1
No related merge requests found
Pipeline #181427 passed
......@@ -4,7 +4,6 @@ let tl3 = new TimelineMax({onUpdate: updatePercentage});
let tl4 = new TimelineMax({onUpdate: updatePercentage});
let tl5 = new TimelineMax({onUpdate: updatePercentage});
let tl6 = new TimelineMax({onUpdate: updatePercentage});
let tl7 = new TimelineMax({onUpdate: updatePercentage});
const controller1 = new ScrollMagic.Controller();
const controller2 = new ScrollMagic.Controller();
......@@ -99,6 +98,16 @@ const scene6 = new ScrollMagic.Scene({
.addTo(controller6);
var tween = TweenMax.fromTo(".menu", 1,
{left: 0},
{left: 100, repeat: 20, yoyo: true, ease: Circ.easeInOut}
);
// build scene
var scene = new ScrollMagic.Scene({triggerElement: "#data", duration: 200})
.setTween(tween) // add indicators (requires plugin)
.addTo(controller7);
function updatePercentage() {
//percent.innerHTML = (tl.progress() *100 ).toFixed();
tl1.progress();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment