mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
animation tweaks
This commit is contained in:
parent
b315f5bbb0
commit
3b62ddc121
@ -4,12 +4,12 @@ export const fadeIn = {
|
||||
},
|
||||
enter: {
|
||||
opacity: 1,
|
||||
duration: '0.4',
|
||||
duration: 0.3,
|
||||
when: 'beforeChildren'
|
||||
},
|
||||
exit: {
|
||||
opacity: 0,
|
||||
transition: { duration: '0.2' }
|
||||
transition: { duration: 0.2 }
|
||||
}
|
||||
}
|
||||
|
||||
@ -20,11 +20,11 @@ export const moveInTop = {
|
||||
},
|
||||
enter: {
|
||||
y: 0,
|
||||
transition: { type: 'spring', duration: '0.4' }
|
||||
transition: { type: 'spring', duration: 0.3, stiffness: 120 }
|
||||
},
|
||||
exit: {
|
||||
y: '-2rem',
|
||||
transition: { type: 'spring', delay: '0.1', duration: '0.3' }
|
||||
transition: { type: 'spring', delay: 0.1, duration: 0.2 }
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,11 +35,11 @@ export const moveInBottom = {
|
||||
},
|
||||
enter: {
|
||||
y: 0,
|
||||
transition: { type: 'spring', duration: '0.4' }
|
||||
transition: { type: 'spring', duration: 0.3, stiffness: 120 }
|
||||
},
|
||||
exit: {
|
||||
y: '2rem',
|
||||
transition: { type: 'spring', delay: '0.1', duration: '0.3' }
|
||||
transition: { type: 'spring', delay: 0.1, duration: 0.2 }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user