krebby
Joined 14 years ago
Joined 14 years ago
I love the flexibility and the fact that there's a variety of examples for basically anything I want to accomplish with it. Great work to the team.
If you guys like reading about this kind of thing I recommend Cocktail Codex from the people behind Death & Co (referenced in the article). It's a great way to think about cocktails as a remixable grammar and the purpose behind all the mixing, muddling, and stirring.
I'm working on one for web map data visualization: https://youtu.be/GJ0ftFB8r4I?t=871
https://react.dev/reference/react-dom/components/common#reac...
For most cases, the Element Capture or Region Capture API should be sufficient: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capt...
Demos: https://mdn.github.io/dom-examples/screen-capture-api/elemen... https://mdn.github.io/dom-examples/screen-capture-api/region...
If you need cross-browser compatibility (and can't just use a canvas) then yeah html2canvas is the way to go
I've been using CropTarget.fromElement with a CaptureController: https://gist.github.com/akre54/e93ab2ce27999aecb109e38085f2e...
https://simonwillison.net/2024/Oct/25/pelicans-on-a-bicycle/
https://new.mta.info/article/introducing-subway-origin-desti...
I've been using Theatre.js the last few years and really loving it. It's a library divided into two parts; one is a studio UI with a timeline for editing keyframes and bezier curves, and the other is a runtime for taking those keyframes and interpolating values in relation to a timeline. Try it for anything that requires coordinated animations.