mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 17:30:01 +02:00
fix: update title animation to use whileInView and add viewport settings
This commit is contained in:
parent
f90f54ec04
commit
dc83c63290
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
|||
export function getTitleAnimation(delay = 0) {
|
||||
return {
|
||||
initial: { opacity: 0, translateY: 20, filter: 'blur(4px)' },
|
||||
animate: { opacity: 1, translateY: 0, filter: 'blur(0px)', transition: { duration: 0.3, delay } },
|
||||
whileInView: { opacity: 1, translateY: 0, filter: 'blur(0px)', transition: { duration: 0.3, delay } },
|
||||
viewport: { once: true }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue