We're a place where coders share, stay up-to-date and grow their careers.
Nice! You could use the custom tag and attributes pattern for this and have a nice component API (but of course pick a better tag prefix than foo):
<foo-loader loading role=“status”> <foo-loader-dot></foo-loader-dot> <foo-loader-dot></foo-loader-dot> <foo-loader-dot></foo-loader-dot> <foo-loader-dot></foo-loader-dot> </foo-loader>
Target the presence of the loading attribute to adjust the styles to pause or unpause the animation or maybe hide/show the loader
loading
Nice! You could use the custom tag and attributes pattern for this and have a nice component API (but of course pick a better tag prefix than foo):
Target the presence of the
loading
attribute to adjust the styles to pause or unpause the animation or maybe hide/show the loader