diff --git a/5-animation/2-css-animations/1-animate-logo-css/solution.md b/5-animation/2-css-animations/1-animate-logo-css/solution.md index 2687b05f..7aa7ca72 100644 --- a/5-animation/2-css-animations/1-animate-logo-css/solution.md +++ b/5-animation/2-css-animations/1-animate-logo-css/solution.md @@ -1,16 +1,17 @@ -CSS-код для анимации одновременно `width` и `height`: +CSS to animate both `width` and `height`: ```css -/* исходный класс */ +/* original class */ #flyjet { transition: all 3s; } -/* JS добавляет .growing *. + +/* JS adds .growing */ #flyjet.growing { width: 400px; height: 240px; } ``` -Небольшая тонкость с окончанием анимации. Соответствующее событие `transitionend` сработает два раза -- по одному для каждого свойства. Поэтому, если не предпринять дополнительных шагов, сообщение из обработчика может быть выведено 2 раза. +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. diff --git a/5-animation/2-css-animations/1-animate-logo-css/solution.view/index.html b/5-animation/2-css-animations/1-animate-logo-css/solution.view/index.html index 31488125..4e90e247 100644 --- a/5-animation/2-css-animations/1-animate-logo-css/solution.view/index.html +++ b/5-animation/2-css-animations/1-animate-logo-css/solution.view/index.html @@ -14,7 +14,7 @@ height: 24px; transition: all 3s; } - + #flyjet.growing { width: 400px; height: 240px; @@ -24,7 +24,7 @@
-