@@ -77,9 +77,9 @@ export function FlowExampleDiagram({ trigger, items }: { trigger: FlowDiagramNod
7777 className = "relative isolate rounded-2xl"
7878 animate = {
7979 reducedMotion
80- ? { scale : 1 }
80+ ? { "--node-accent-opacity" : 0.45 }
8181 : {
82- scale : [ 1 , 1 , 1.012 , 1 , 1 , 1 , 1 ] ,
82+ "--node-accent-opacity" : [ 0 , 0 , 0.8 , 0.45 , 0.45 , 0 , 0 ] ,
8383 }
8484 }
8585 transition = { {
@@ -89,26 +89,6 @@ export function FlowExampleDiagram({ trigger, items }: { trigger: FlowDiagramNod
8989 times : [ 0 , arrivalTime , arrivalPeakTime , arrivalSettleTime , resetStartTime , resetEndTime , 1 ] ,
9090 } }
9191 >
92- < motion . div
93- aria-hidden = "true"
94- className = "pointer-events-none absolute inset-0 z-0 rounded-[inherit]"
95- style = { {
96- boxShadow : `0 0 0 1px color-mix(in srgb, ${ getNodeAccentColor ( node . node . color ) } 24%, transparent), 0 0 14px color-mix(in srgb, ${ getNodeAccentColor ( node . node . color ) } 22%, transparent)` ,
97- } }
98- animate = {
99- reducedMotion
100- ? { opacity : 0.45 }
101- : {
102- opacity : [ 0 , 0 , 0.75 , 0.45 , 0.45 , 0 , 0 ] ,
103- }
104- }
105- transition = { {
106- duration : reducedMotion ? 0 : cycleDuration ,
107- repeat : reducedMotion ? 0 : Infinity ,
108- ease : "linear" ,
109- times : [ 0 , arrivalTime , arrivalPeakTime , arrivalSettleTime , resetStartTime , resetEndTime , 1 ] ,
110- } }
111- />
11292 < motion . div
11393 aria-hidden = "true"
11494 className = "pointer-events-none absolute -inset-2 z-0 rounded-3xl blur-xl"
@@ -117,7 +97,7 @@ export function FlowExampleDiagram({ trigger, items }: { trigger: FlowDiagramNod
11797 reducedMotion
11898 ? { opacity : 0.08 }
11999 : {
120- opacity : [ 0 , 0 , 0.14 , 0.08 , 0.08 , 0 , 0 ] ,
100+ opacity : [ 0 , 0 , 0.1 , 0.05 , 0.05 , 0 , 0 ] ,
121101 }
122102 }
123103 transition = { {
@@ -128,7 +108,7 @@ export function FlowExampleDiagram({ trigger, items }: { trigger: FlowDiagramNod
128108 } }
129109 />
130110 < div className = "relative z-10" >
131- < NodeDisplay node = { node . node } />
111+ < NodeDisplay node = { node . node } animatedOutline />
132112 </ div >
133113 </ motion . div >
134114 ) }
0 commit comments