Created
September 4, 2019 19:13
-
-
Save charisTheo/6cc4b48f075c44be5c8a8ea257a02e0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var element = document.getElementById('example-element'); | |
element.style.display = 'none'; // hide the element, triggers reflow | |
element.style.opacity = '0.5'; | |
element.style.padding = '20px 10px'; | |
element.style.width = '200px'; | |
element.style.display = 'block'; // show the element again, triggers reflow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment