File tree Expand file tree Collapse file tree 4 files changed +104
-16
lines changed
exercise/09-ui/app/components/PizzaPreview
09-ui/progressive-pizza/app/components/PizzaPreview
10-error-boundary/progressive-pizza/app/components/PizzaPreview
11-tests/progressive-pizza/app/components/PizzaPreview Expand file tree Collapse file tree 4 files changed +104
-16
lines changed Original file line number Diff line number Diff line change 51
51
position : absolute;
52
52
background-repeat : no-repeat;
53
53
background-size : contain;
54
+ animation : fallIn 0.4s ease-in;
54
55
}
55
56
56
57
.pizza__topping--anchovy {
70
71
left : 263px ;
71
72
top : 95px ;
72
73
}
73
- .pizza__topping--anchovy : nth-child (4 ), .pizza__topping--anchovy : nth-child (5 ) {
74
+ .pizza__topping--anchovy : nth-child (4 ),
75
+ .pizza__topping--anchovy : nth-child (5 ) {
74
76
display : none;
75
77
}
76
78
119
121
left : 222px ;
120
122
top : 98px ;
121
123
}
122
- .pizza__topping--basil : nth-child (4 ), .pizza__topping--basil : nth-child (5 ) {
124
+ .pizza__topping--basil : nth-child (4 ),
125
+ .pizza__topping--basil : nth-child (5 ) {
123
126
display : none;
124
127
}
125
128
167
170
left : 162px ;
168
171
top : 8px ;
169
172
}
170
- .pizza__topping--mozzarella : nth-child (4 ), .pizza__topping--mozzarella : nth-child (5 ) {
173
+ .pizza__topping--mozzarella : nth-child (4 ),
174
+ .pizza__topping--mozzarella : nth-child (5 ) {
171
175
display : none;
172
176
}
173
177
.pizza__topping--mushroom {
314
318
left : 212px ;
315
319
top : 146px ;
316
320
}
317
- .pizza__topping--sweetcorn : nth-child (4 ), .pizza__topping--sweetcorn : nth-child (5 ) {
321
+ .pizza__topping--sweetcorn : nth-child (4 ),
322
+ .pizza__topping--sweetcorn : nth-child (5 ) {
318
323
display : none;
319
324
}
320
325
342
347
.pizza__topping--tomato : nth-child (5 ) {
343
348
display : none;
344
349
}
350
+
351
+ @keyframes fallIn {
352
+ 0% {
353
+ transform : translateY (-100px );
354
+ opacity : 0 ;
355
+ }
356
+ 70% {
357
+ transform : translateY (0 );
358
+ opacity : 1 ;
359
+ }
360
+ 90% {
361
+ transform : translateY (-10px );
362
+ }
363
+ 100% {
364
+ transform : translateY (0 );
365
+ }
366
+ }
Original file line number Diff line number Diff line change 51
51
position : absolute;
52
52
background-repeat : no-repeat;
53
53
background-size : contain;
54
+ animation : fallIn 0.4s ease-in;
54
55
}
55
56
56
57
.pizza__topping--anchovy {
70
71
left : 263px ;
71
72
top : 95px ;
72
73
}
73
- .pizza__topping--anchovy : nth-child (4 ), .pizza__topping--anchovy : nth-child (5 ) {
74
+ .pizza__topping--anchovy : nth-child (4 ),
75
+ .pizza__topping--anchovy : nth-child (5 ) {
74
76
display : none;
75
77
}
76
78
119
121
left : 222px ;
120
122
top : 98px ;
121
123
}
122
- .pizza__topping--basil : nth-child (4 ), .pizza__topping--basil : nth-child (5 ) {
124
+ .pizza__topping--basil : nth-child (4 ),
125
+ .pizza__topping--basil : nth-child (5 ) {
123
126
display : none;
124
127
}
125
128
167
170
left : 162px ;
168
171
top : 8px ;
169
172
}
170
- .pizza__topping--mozzarella : nth-child (4 ), .pizza__topping--mozzarella : nth-child (5 ) {
173
+ .pizza__topping--mozzarella : nth-child (4 ),
174
+ .pizza__topping--mozzarella : nth-child (5 ) {
171
175
display : none;
172
176
}
173
177
.pizza__topping--mushroom {
314
318
left : 212px ;
315
319
top : 146px ;
316
320
}
317
- .pizza__topping--sweetcorn : nth-child (4 ), .pizza__topping--sweetcorn : nth-child (5 ) {
321
+ .pizza__topping--sweetcorn : nth-child (4 ),
322
+ .pizza__topping--sweetcorn : nth-child (5 ) {
318
323
display : none;
319
324
}
320
325
342
347
.pizza__topping--tomato : nth-child (5 ) {
343
348
display : none;
344
349
}
350
+
351
+ @keyframes fallIn {
352
+ 0% {
353
+ transform : translateY (-100px );
354
+ opacity : 0 ;
355
+ }
356
+ 70% {
357
+ transform : translateY (0 );
358
+ opacity : 1 ;
359
+ }
360
+ 90% {
361
+ transform : translateY (-10px );
362
+ }
363
+ 100% {
364
+ transform : translateY (0 );
365
+ }
366
+ }
Original file line number Diff line number Diff line change 51
51
position : absolute;
52
52
background-repeat : no-repeat;
53
53
background-size : contain;
54
+ animation : fallIn 0.4s ease-in;
54
55
}
55
56
56
57
.pizza__topping--anchovy {
70
71
left : 263px ;
71
72
top : 95px ;
72
73
}
73
- .pizza__topping--anchovy : nth-child (4 ), .pizza__topping--anchovy : nth-child (5 ) {
74
+ .pizza__topping--anchovy : nth-child (4 ),
75
+ .pizza__topping--anchovy : nth-child (5 ) {
74
76
display : none;
75
77
}
76
78
119
121
left : 222px ;
120
122
top : 98px ;
121
123
}
122
- .pizza__topping--basil : nth-child (4 ), .pizza__topping--basil : nth-child (5 ) {
124
+ .pizza__topping--basil : nth-child (4 ),
125
+ .pizza__topping--basil : nth-child (5 ) {
123
126
display : none;
124
127
}
125
128
167
170
left : 162px ;
168
171
top : 8px ;
169
172
}
170
- .pizza__topping--mozzarella : nth-child (4 ), .pizza__topping--mozzarella : nth-child (5 ) {
173
+ .pizza__topping--mozzarella : nth-child (4 ),
174
+ .pizza__topping--mozzarella : nth-child (5 ) {
171
175
display : none;
172
176
}
173
177
.pizza__topping--mushroom {
314
318
left : 212px ;
315
319
top : 146px ;
316
320
}
317
- .pizza__topping--sweetcorn : nth-child (4 ), .pizza__topping--sweetcorn : nth-child (5 ) {
321
+ .pizza__topping--sweetcorn : nth-child (4 ),
322
+ .pizza__topping--sweetcorn : nth-child (5 ) {
318
323
display : none;
319
324
}
320
325
342
347
.pizza__topping--tomato : nth-child (5 ) {
343
348
display : none;
344
349
}
350
+
351
+ @keyframes fallIn {
352
+ 0% {
353
+ transform : translateY (-100px );
354
+ opacity : 0 ;
355
+ }
356
+ 70% {
357
+ transform : translateY (0 );
358
+ opacity : 1 ;
359
+ }
360
+ 90% {
361
+ transform : translateY (-10px );
362
+ }
363
+ 100% {
364
+ transform : translateY (0 );
365
+ }
366
+ }
Original file line number Diff line number Diff line change 51
51
position : absolute;
52
52
background-repeat : no-repeat;
53
53
background-size : contain;
54
+ animation : fallIn 0.4s ease-in;
54
55
}
55
56
56
57
.pizza__topping--anchovy {
70
71
left : 263px ;
71
72
top : 95px ;
72
73
}
73
- .pizza__topping--anchovy : nth-child (4 ), .pizza__topping--anchovy : nth-child (5 ) {
74
+ .pizza__topping--anchovy : nth-child (4 ),
75
+ .pizza__topping--anchovy : nth-child (5 ) {
74
76
display : none;
75
77
}
76
78
119
121
left : 222px ;
120
122
top : 98px ;
121
123
}
122
- .pizza__topping--basil : nth-child (4 ), .pizza__topping--basil : nth-child (5 ) {
124
+ .pizza__topping--basil : nth-child (4 ),
125
+ .pizza__topping--basil : nth-child (5 ) {
123
126
display : none;
124
127
}
125
128
167
170
left : 162px ;
168
171
top : 8px ;
169
172
}
170
- .pizza__topping--mozzarella : nth-child (4 ), .pizza__topping--mozzarella : nth-child (5 ) {
173
+ .pizza__topping--mozzarella : nth-child (4 ),
174
+ .pizza__topping--mozzarella : nth-child (5 ) {
171
175
display : none;
172
176
}
173
177
.pizza__topping--mushroom {
314
318
left : 212px ;
315
319
top : 146px ;
316
320
}
317
- .pizza__topping--sweetcorn : nth-child (4 ), .pizza__topping--sweetcorn : nth-child (5 ) {
321
+ .pizza__topping--sweetcorn : nth-child (4 ),
322
+ .pizza__topping--sweetcorn : nth-child (5 ) {
318
323
display : none;
319
324
}
320
325
342
347
.pizza__topping--tomato : nth-child (5 ) {
343
348
display : none;
344
349
}
350
+
351
+ @keyframes fallIn {
352
+ 0% {
353
+ transform : translateY (-100px );
354
+ opacity : 0 ;
355
+ }
356
+ 70% {
357
+ transform : translateY (0 );
358
+ opacity : 1 ;
359
+ }
360
+ 90% {
361
+ transform : translateY (-10px );
362
+ }
363
+ 100% {
364
+ transform : translateY (0 );
365
+ }
366
+ }
You can’t perform that action at this time.
0 commit comments