Fixed setTimeout() issue

there wasn't any time for setTimeout Function...
This commit is contained in:
Fardin 2022-06-13 15:07:13 +04:30 committed by GitHub
parent 9e72417031
commit 7e19bb6b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ Also there is a special method for that, `elem.style.removeProperty('style prope
```js run
document.body.style.background = 'red'; //set background to red
setTimeout(() => document.body.style.removeProperty('background')); // remove background after 1 second
setTimeout(() => document.body.style.removeProperty('background'), 1000); // remove background after 1 second
```
````smart header="Full rewrite with `style.cssText`"