minor fixes

This commit is contained in:
Ilya Kantor 2021-06-24 23:24:53 +03:00
parent 27af482dd8
commit 934d32be5b

View file

@ -443,7 +443,7 @@ The `opacity` property also never causes Layout (also skips Paint in Gecko). We
Paring `transform` with `opacity` can usually solve most of our needs, providing fluid, good-looking animations.
For example, here clicking on the `#boat` element adds the class with `transform: translateX(300)` and `opacity: 0`, thus making it move `300px` to the right and fade out:
For example, here clicking on the `#boat` element adds the class with `transform: translateX(300)` and `opacity: 0`, thus making it move `300px` to the right and disappear:
```html run height=260 autorun no-beautify
<img src="https://js.cx/clipart/boat.png" id="boat">