File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed
06-animating-staggered-lists/src/components
07-animating-colors-and-keyframes/src/components
08-imperative-animations/src/components
09-animating-layout-changes/src/components
10-orchestrating-multi-element-animations/src/components
11-animating-shared-elements/src/components
12-finished/src/components Expand file tree Collapse file tree 7 files changed +11
-11
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
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' ;
@@ -60,7 +60,7 @@ export default function NewChallenge({ onDone }) {
6060 < motion . ul
6161 id = "new-challenge-images"
6262 variants = { {
63- visible : { transition : { staggerChildren : 0.05 } } ,
63+ visible : { transition : { delayChildren : stagger ( 0.05 ) } } ,
6464 } }
6565 >
6666 { images . map ( ( image ) => (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function NewChallenge({ onDone }) {
6868 < motion . ul
6969 id = "new-challenge-images"
7070 variants = { {
71- visible : { transition : { staggerChildren : 0.05 } } ,
71+ visible : { transition : { delayChildren : stagger ( 0.05 ) } } ,
7272 } }
7373 >
7474 { images . map ( ( image ) => (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function NewChallenge({ onDone }) {
6868 < motion . ul
6969 id = "new-challenge-images"
7070 variants = { {
71- visible : { transition : { staggerChildren : 0.05 } } ,
71+ visible : { transition : { delayChildren : stagger ( 0.05 ) } } ,
7272 } }
7373 >
7474 { images . map ( ( image ) => (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function NewChallenge({ onDone }) {
6868 < motion . ul
6969 id = "new-challenge-images"
7070 variants = { {
71- visible : { transition : { staggerChildren : 0.05 } } ,
71+ visible : { transition : { delayChildren : stagger ( 0.05 ) } } ,
7272 } }
7373 >
7474 { images . map ( ( image ) => (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function NewChallenge({ onDone }) {
6868 < motion . ul
6969 id = "new-challenge-images"
7070 variants = { {
71- visible : { transition : { staggerChildren : 0.05 } } ,
71+ visible : { transition : { delayChildren : stagger ( 0.05 ) } } ,
7272 } }
7373 >
7474 { images . map ( ( image ) => (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function NewChallenge({ onDone }) {
6868 < motion . ul
6969 id = "new-challenge-images"
7070 variants = { {
71- visible : { transition : { staggerChildren : 0.05 } } ,
71+ visible : { transition : { delayChildren : stagger ( 0.05 ) } } ,
7272 } }
7373 >
7474 { images . map ( ( image ) => (
You can’t perform that action at this time.
0 commit comments