From 7e19bb6b47a58c21af35d30c320fec0aac5ec64c Mon Sep 17 00:00:00 2001 From: Fardin <95420562+webFardin@users.noreply.github.com> Date: Mon, 13 Jun 2022 15:07:13 +0430 Subject: [PATCH] Fixed setTimeout() issue there wasn't any time for setTimeout Function... --- 2-ui/1-document/08-styles-and-classes/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/08-styles-and-classes/article.md b/2-ui/1-document/08-styles-and-classes/article.md index 82f61b24..644583c3 100644 --- a/2-ui/1-document/08-styles-and-classes/article.md +++ b/2-ui/1-document/08-styles-and-classes/article.md @@ -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`"