Fixed setTimeout() issue
there wasn't any time for setTimeout Function...
This commit is contained in:
parent
9e72417031
commit
7e19bb6b47
1 changed files with 1 additions and 1 deletions
|
@ -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`"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue