Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fudan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2022 Competition
Fudan
Commits
7c928a1d
Commit
7c928a1d
authored
2 years ago
by
Zihan Zhang
Browse files
Options
Downloads
Patches
Plain Diff
Update static/divflow.js
parent
37d81688
No related branches found
Branches containing commit
Tags
countdown1
Tags containing commit
No related merge requests found
Pipeline
#181427
passed
2 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
static/divflow.js
+10
-1
10 additions, 1 deletion
static/divflow.js
with
10 additions
and
1 deletion
static/divflow.js
+
10
−
1
View file @
7c928a1d
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment