Skip to content

Commit

Permalink
Switch axis for loading animation
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed May 9, 2023
1 parent 4248784 commit f613089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export default function Layout({
<AnimatePresence>
<motion.div
key={location.pathname}
initial={{ x: 100, opacity: 0 }}
initial={{ y: 100, opacity: 0 }}
animate={{
x: 0,
y: 0,
opacity: 1,
transition: { duration: 0.5, ease: "easeInOut" },
}}
exit={{
x: -100,
y: -100,
opacity: 0,
transition: { duration: 0.5, ease: "easeInOut" },
}}
Expand Down

0 comments on commit f613089

Please sign in to comment.