Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
svg is awesome
draw it in illustrater, sketch, inkscape, name all layers.
Export it.
Open it with your text editor
Add the
<cDATA>
<style></style>
<script></script>
</cDATA>
tag below the title.
And your good to go to use anything you like to manipulate the labled layers dom. If it's css animation, a js libary or the web animations api ->
https://goo.gl/FNBSvO
Everything in one independent SVG file.
I love it! -
@ScriptCoded I have each svg element (a group) wrapped in React component. So it can be reused to create multiple rooms with different layout, and render the animation based on props
-
i wish there was an equivalent of svg that uses json syntax instead of xml 😆
that would be much easier to edit. -
Related Rants
No prior knowledge on svg. Somehow Built this animated svg using React components 😼
joke/meme
react
svg