| I built a custom loading animation using a web component. It takes an image, lays out 8 copies of in a circle with increasing size, and then rotates it. To use the component, load it in a script with the following code. The loading animation can then be added to the DOM with the following HTML. The loading animation was placed inside a shadow DOM web component with 0 dependencies. My intention is for developers to be able to copy and paste the component into their own websites. Source code for the component is located here. https://codeberg.org/createthirdplaces/DMVBoardGames/src/branch/main/src/shared/components/LoadingIndicatorComponent.js [link] [留言] |
Frontend
Read original: https://www.reddit.com/r/webdev/comments/1wev56r/custom_loading_animation_using_a_web_component/
Custom loading animation using a web component
/u/create-third-places Reddit r/webdev
21 views
← Previous
I banned Claude from saying 'looks reasonable' and it started finding my blind spots
Next →
The CFO's AI Playbook: 5 Finance Automations Every Indian Business Should Run in 2026
Related
validation-br 2.0: Validação em TypeScript, zero dependências
Frontend
52
Dev.to (EN Zone)
The same one-line table-parsing bug turned up in five separate tools. I fixed it four times.
Frontend
40
DEV Community
How to Price Web Design Projects: A Practical Guide for Freelancers
Frontend
36
Dev.to (EN Zone)
Post Apache Ossie, what distinguishes semantic layers?
Frontend
41
Dev.to (EN Zone)
Comments0
No comments yet — be the first