Hi Bruno. Can you please explain what the purpose of this line of code is? target.offsetHeight; When i remove this from my code, the animation does not work. But this line keeps throwing a linting warning.
target.offsetHeight;
This line forces the browser to restart a CSS animation. Explanation here: css-tricks.com/restart-css-animation/ Further discussion here: sitepoint.com/community/t/why-does...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Bruno. Can you please explain what the purpose of this line of code is?
target.offsetHeight;When i remove this from my code, the animation does not work. But this line keeps throwing a linting warning.
This line forces the browser to restart a CSS animation.
Explanation here: css-tricks.com/restart-css-animation/
Further discussion here: sitepoint.com/community/t/why-does...