@@ -16,10 +16,10 @@ export default function PolylineExample() {
1616 PolylineProps
1717 >
1818 buildAnimation = { ( { keyframes } ) => ( {
19- animationName : keyframes ,
2019 animationDirection : 'alternate' ,
2120 animationDuration : '1s' ,
2221 animationIterationCount : 'infinite' ,
22+ animationName : keyframes ,
2323 animationTimingFunction : 'ease-in-out' ,
2424 } ) }
2525 renderExample = { ( { animation } ) => (
@@ -40,9 +40,10 @@ export default function PolylineExample() {
4040 name : 'Points' ,
4141 sections : [
4242 {
43- title : 'Same Number of Points' ,
4443 examples : [
4544 {
45+ description :
46+ 'Smooth interpolation between two zigzag shapes with the same number of points' ,
4647 keyframes : {
4748 from : {
4849 points : '10,80 30,20 50,80 70,20 90,80' ,
@@ -52,10 +53,10 @@ export default function PolylineExample() {
5253 } ,
5354 } ,
5455 title : 'Zigzag' ,
55- description :
56- 'Smooth interpolation between two zigzag shapes with the same number of points' ,
5756 } ,
5857 {
58+ description :
59+ 'Smooth animation between two wave phases with the same number of points' ,
5960 keyframes : {
6061 from : {
6162 points : '10,50 27,20 44,50 61,80 78,50 95,20' ,
@@ -65,10 +66,10 @@ export default function PolylineExample() {
6566 } ,
6667 } ,
6768 title : 'Wave' ,
68- description :
69- 'Smooth animation between two wave phases with the same number of points' ,
7069 } ,
7170 {
71+ description :
72+ 'Points morph from one corner configuration to another' ,
7273 keyframes : {
7374 from : {
7475 points : '10,90 10,10 90,10' ,
@@ -78,10 +79,10 @@ export default function PolylineExample() {
7879 } ,
7980 } ,
8081 title : 'Corner sweep' ,
81- description :
82- 'Points morph from one corner configuration to another' ,
8382 } ,
8483 {
84+ description :
85+ 'Smooth animation of an S-curve between two mirror states' ,
8586 keyframes : {
8687 from : {
8788 points : '10,50 30,10 50,50 70,90 90,50' ,
@@ -91,15 +92,15 @@ export default function PolylineExample() {
9192 } ,
9293 } ,
9394 title : 'S-curve' ,
94- description :
95- 'Smooth animation of an S-curve between two mirror states' ,
9695 } ,
9796 ] ,
97+ title : 'Same Number of Points' ,
9898 } ,
9999 {
100- title : 'Different Number of Points' ,
101100 examples : [
102101 {
102+ description :
103+ 'Interpolation between different numbers of points is **not supported**, so the points change **abruptly**' ,
103104 keyframes : {
104105 from : {
105106 points : '10,80 50,20 90,80' ,
@@ -109,10 +110,10 @@ export default function PolylineExample() {
109110 } ,
110111 } ,
111112 title : 'Growing polyline' ,
112- description :
113- 'Interpolation between different numbers of points is **not supported**, so the points change **abruptly**' ,
114113 } ,
115114 {
115+ description :
116+ 'Reducing the number of points also causes an **abrupt** change instead of a smooth transition' ,
116117 keyframes : {
117118 from : {
118119 points : '10,50 25,20 40,80 55,20 70,80 85,20 90,50' ,
@@ -122,18 +123,16 @@ export default function PolylineExample() {
122123 } ,
123124 } ,
124125 title : 'Shrinking polyline' ,
125- description :
126- 'Reducing the number of points also causes an **abrupt** change instead of a smooth transition' ,
127126 } ,
128127 ] ,
128+ title : 'Different Number of Points' ,
129129 } ,
130130 ] ,
131131 } ,
132132 {
133133 name : 'Appearance' ,
134134 sections : [
135135 {
136- title : 'Opacity' ,
137136 examples : [
138137 {
139138 keyframes : {
@@ -144,6 +143,7 @@ export default function PolylineExample() {
144143 title : 'Opacity' ,
145144 } ,
146145 ] ,
146+ title : 'Opacity' ,
147147 } ,
148148 ] ,
149149 } ,
0 commit comments