Skip to content

Commit 7293725

Browse files
author
Jesse Borden
committed
style(hero): Update animation ease.
1 parent 1e45c81 commit 7293725

File tree

1 file changed

+7
-3
lines changed
  • assets/javascripts/new-javascripts

1 file changed

+7
-3
lines changed

assets/javascripts/new-javascripts/hero.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const heroAnimation = async (animContainer) => {
175175
const DURATION = 1000 - 1000 * offScreenDelta
176176

177177
const tl = anime.createTimeline({
178-
defaults: { duration: DURATION, ease: 'inOut(1.2)' },
178+
defaults: { duration: DURATION, ease: 'in(1.8)' },
179179
})
180180

181181
tl.label('start', 0)
@@ -211,13 +211,17 @@ const heroAnimation = async (animContainer) => {
211211
},
212212
'start',
213213
)
214+
let count = 0
214215
// Purple swoop
215216
tl.add(
216217
heroSwoops[0].state,
217218
{
218219
progress: 1,
219220
duration: 950 - 950 * offScreenDelta,
220-
onUpdate: () => swoopUpdate(heroSwoops[0]),
221+
onUpdate: () => {
222+
swoopUpdate(heroSwoops[0])
223+
if (count++ > 0) debugger
224+
},
221225
},
222226
'start',
223227
)
@@ -254,7 +258,7 @@ const heroAnimation = async (animContainer) => {
254258
tl.add(
255259
logo.state,
256260
{
257-
ease: 'out(2)',
261+
ease: 'out(1.2)',
258262
duration: 200 - 200 * offScreenDelta,
259263
delay: 750 - 750 * offScreenDelta,
260264
progress: 1,

0 commit comments

Comments
 (0)