Customize AOS fade-up animation distance

This commit is contained in:
Paul Nicoué 2023-04-07 15:25:44 +02:00
parent 606b4801c7
commit 54698b3dc8
2 changed files with 9 additions and 3 deletions

View file

@ -37,3 +37,9 @@
transform: rotate(360deg);
}
}
// AOS customization
[data-aos='fade-up'] {
transform: translate3d(0, 5rem, 0);
}

View file

@ -26,11 +26,11 @@
onMounted(() => {
const AOS = useNuxtApp().$AOS;
AOS.init({
offset: 100,
delay: 0,
duration: 600,
easing: 'ease-in-out',
delay: 0,
once: false
offset: 100,
once: true
});
})