Re:Show HN: Wiv.js – A library for a more wiggly div
by kristopolous on Tuesday December 25, 2018 @02:05AM
(#18756371)
(edit: this assertion is incorrect, I skimmed the code too fast) I had no idea that you can draw on any element, not just canvas ones ... I thought there was a semantic meaning there ... apparently there isn't?
[ Parent
| on HN ]
Re:Show HN: Wiv.js – A library for a more wiggly div
by Kagerjay on Tuesday December 25, 2018 @12:36PM
(#18758230)
reminds me of freezeframe.js, you can grab an a slice of a gif and draw a canvas image on top
https://github.com/ctrl-freaks/freezeframe.js
except this is just any regular div element
Re:Show HN: Wiv.js – A library for a more wiggly div
by MatthewRayfield on Tuesday December 25, 2018 @02:51AM
(#18756466)
Looks like it's adding a canvas element to the divs and positioning it to line up.
Re:Show HN: Wiv.js – A library for a more wiggly div
by kristopolous on Tuesday December 25, 2018 @02:56AM
(#18756476)
Ah yes I missed the var canvas line and just presumed the code was getting a context on the selected div instead, a feature I didn't know was possible (it isn't).
The canvas declaration is staring right at me now that I review it again. That's life...