←back to thread

518 points cantdutchthis | 1 comments | | HN request time: 0.417s | source
Show context
paulirish ◴[] No.44501428[source]
If the target is a GitHub readme, then you can embed a video directly. eg https://github.com/paulirish/git-recent#readme

That said, OP's SVG trick may be a smarter choice if the content is a terminal capture.

replies(5): >>44501659 #>>44501901 #>>44503973 #>>44504356 #>>44504696 #
1. socalgal2 ◴[] No.44504356[source]
SVG can be color responsive (change color based on the user's dark/light prefs). It can also be size responsive (change based on max width or aspect). Video can't

https://jsbin.com/nohamuguze/edit?html,css,output

edit: sigh.... Works in Firefox and Chrome. Has issues in Safari - I'm sure I could futs with it more and get it to work everywhere but still, sadness