3 ms·
That sounds a little selfish; think of people using other frameworks. Also, in this particular case, the graphics are simply two layers of SVG: an image of a g
by amelius 8y ago
That sounds a little selfish; think of people using other frameworks.
Also, in this particular case, the graphics are simply two layers of SVG: an image of a ghost, backpack, browser, etc. and superimposed on top of that a "mood". You can compose these images with two lines of CSS, no React required.
- leppr 8y agoBut then it wouldn't make Hacker News front page would it ?
- mateuszf 8y ago> That sounds a little selfish; think of people using other frameworks. Or people using other frameworks could be not selfish and use React. If she/he's the one giving stuff for free - it's on her/his terms.
- slig 8y agoCan you share the two lines of CSS that would make something like this work? <div style="width: 200px" class="kawaii-backpack kawaii-happy"></div> or this: <div style="width: 200px"> <img src="kawaii-backpack.sgv" /> <img src="kawaii-happy.svg" /> </div> Edit: it should also work with a color user defined color.
- sydd 8y agoWebcomponents were invented to do this. You just need a polyfill for now.