3 ms·
yeah, it's not a new one. today Svelte would be the #1 pick for part-SVG full-page infographics with transitions and animations
by dym_sh 5y ago
yeah, it's not a new one.
today Svelte would be the #1 pick for part-SVG full-page infographics with transitions and animations
- ttiurani 5y agoI've heard Svelte being promoted for SVG animations before too, but I haven't understood why. Is there some benefit Svelte specifically has here opposed to React/Vue/etc?
- deergomoo 5y agoSvelte comes with a bunch of animation related things out of the box, whereas with Vue or React you’re going to be implementing that stuff yourself or seeking out a third party library.
- mvolfik 5y agoWhat deergomoo says, and also performance - Svelte isn't really a framework, it prefers to call itself a compiler. Each component compiles into something that has no virtual-DOM overhead - what the compiler does is that it tracks which fragment depends on which value, and then at runtime when a value is updated, only the needed fragments are updated. What I also like about it is what a .Svelte file looks like. Since it's a compiler from the very beginning, it didn't need to start as .js and only than add .jsx for a little less verbosity. Svelte file is basically a HTML file with <style> and <script> tags. Variables from javascript can be referenced in HTML simply with {var}, and there are constructs for if/else, loops and few other special things. Easier to see than describe, go to https://svelte.dev/tutorial/ https://svelte.dev/tutorial/