Rename Homepage timeline variable
This commit is contained in:
@@ -26,20 +26,20 @@
|
||||
|
||||
onMount(() => {
|
||||
// Setup animations
|
||||
const introTimeline = anime.timeline({
|
||||
const timeline = anime.timeline({
|
||||
duration: 1600,
|
||||
easing: 'easeOutQuart',
|
||||
})
|
||||
|
||||
// Reveal text
|
||||
introTimeline.add({
|
||||
timeline.add({
|
||||
targets: '.homepage__headline',
|
||||
translateY: [16, 0],
|
||||
opacity: [0, 1],
|
||||
}, 900)
|
||||
|
||||
// Animate collage photos
|
||||
introTimeline.add({
|
||||
timeline.add({
|
||||
targets: '.homepage__collage .photo-card',
|
||||
translateY: ['33.333%', 0],
|
||||
rotate (item: HTMLElement) {
|
||||
|
||||
Reference in New Issue
Block a user