File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
code/26 Animations/06-animating-staggered-lists/src/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { useContext , useRef , useState } from 'react' ;
2- import { motion } from 'framer-motion' ;
2+ import { motion , stagger } from 'framer-motion' ;
33
44import { ChallengesContext } from '../store/challenges-context.jsx' ;
55import Modal from './Modal.jsx' ;
@@ -57,10 +57,10 @@ export default function NewChallenge({ onDone }) {
5757 < input ref = { deadline } type = "date" name = "deadline" id = "deadline" />
5858 </ p >
5959
60- < motion . ul
61- id = "new-challenge-images"
60+ < motion . ul
61+ id = "new-challenge-images"
6262 variants = { {
63- visible : { transition : { staggerChildren : 0.05 } }
63+ visible : { transition : { delayChildren : stagger ( 0.05 ) } }
6464 } } >
6565 { images . map ( ( image ) => (
6666 < motion . li
You can’t perform that action at this time.
0 commit comments