#vanillajs — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #vanillajs, aggregated by home.social.
-
Dear lazyweb, what’s today’s cool tech stack to build a zero-dependency #WebComponent?
I’m a hardcore #VanillaJS fanboy, but I’d like to experiment a more sugar-coated approach, possibly using #TypeScript, #JSX and some #rollup-like magic to bundle and minify my WebComponent.
I’ve heard a lot of good things about #Svelte, I like the compiled approach, are there any caveats or better alternatives?
-
Created an #Eleventy plugin to zoom images on fullscreen.
When hovering, the magnifying glass indicates to the user that the img can be enlarged. A click and it appears enlarged, through a fade-in animation. A click outside the image quit the enlarged view.
Under the hood, a #VanillaJS inserts `<dialog>` #HTML modal right before the image. Outside of the modal click =`dialog` disappears.
Styled via #CSS `@starting-style`.