Skip to content

Commit

Permalink
Reverting changes to demo file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Nov 14, 2024
1 parent c8cfbf5 commit c9d3989
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dev/react/src/examples/Animation-animate.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { motion, stagger, animate, animateMini } from "framer-motion"
import { motion } from "framer-motion"
import { useEffect, useState } from "react"

/**
Expand All @@ -14,15 +14,13 @@ export const App = () => {
const [state, setState] = useState(false)
useEffect(() => {
setTimeout(() => {
// setState(true)

animateMini("div", { x: 100 }, { duration: 1, delay: stagger(0) })
setState(true)
}, 300)
}, [state])

return (
<motion.div
// animate={{ x: state ? 0 : 100 }}
animate={{ x: state ? 0 : 100 }}
transition={{ duration: 1 }}
style={style}
/>
Expand Down

0 comments on commit c9d3989

Please sign in to comment.