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);
|
||||
}
|
||||
}
|
||||
|
||||
// AOS customization
|
||||
|
||||
[data-aos='fade-up'] {
|
||||
transform: translate3d(0, 5rem, 0);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
});
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue