Customize AOS fade-up animation distance
This commit is contained in:
parent
606b4801c7
commit
54698b3dc8
2 changed files with 9 additions and 3 deletions
|
@ -37,3 +37,9 @@
|
||||||
transform: rotate(360deg);
|
transform: rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AOS customization
|
||||||
|
|
||||||
|
[data-aos='fade-up'] {
|
||||||
|
transform: translate3d(0, 5rem, 0);
|
||||||
|
}
|
||||||
|
|
|
@ -26,11 +26,11 @@
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const AOS = useNuxtApp().$AOS;
|
const AOS = useNuxtApp().$AOS;
|
||||||
AOS.init({
|
AOS.init({
|
||||||
offset: 100,
|
delay: 0,
|
||||||
duration: 600,
|
duration: 600,
|
||||||
easing: 'ease-in-out',
|
easing: 'ease-in-out',
|
||||||
delay: 0,
|
offset: 100,
|
||||||
once: false
|
once: true
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue