Skip to content

Commit

Permalink
fix: transition view
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 21, 2024
1 parent fede3f6 commit 20b2d11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/app/(app)/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ const Hero = () => {
</ul>
</>

<div
className={clsx('lg:size-[300px]', 'size-[200px]')}
>
<div className={clsx('lg:size-[300px]', 'size-[200px]')}>
<Image
height={300}
width={300}
Expand Down
13 changes: 9 additions & 4 deletions src/components/ui/transition/factor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ export const createTransitionView = (params: TransitionViewParams) => {

const motionProps: MotionProps = {
initial: initial || from,
animate: to,
animate: {
...to,
transition: {
duration,
...(preset || microReboundPreset),
...animation.enter,
delay: enter / 1000,
},
},
transition: {
duration,
...(preset || microReboundPreset),
...animation.enter,
delay: enter / 1000,
},
exit: {
...from,
Expand Down

0 comments on commit 20b2d11

Please sign in to comment.