renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
17
3-animation/2-css-animations/1-animate-logo-css/solution.md
Normal file
17
3-animation/2-css-animations/1-animate-logo-css/solution.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
CSS to animate both `width` and `height`:
|
||||
```css
|
||||
/* original class */
|
||||
|
||||
#flyjet {
|
||||
transition: all 3s;
|
||||
}
|
||||
|
||||
/* JS adds .growing */
|
||||
#flyjet.growing {
|
||||
width: 400px;
|
||||
height: 240px;
|
||||
}
|
||||
```
|
||||
|
||||
Please note that `transitionend` triggers two times -- once for every property. So if we don't perform an additional check then the message would show up 2 times.
|
Loading…
Add table
Add a link
Reference in a new issue