Skip to content

Instantly share code, notes, and snippets.

View thomasverleye's full-sized avatar
🥚
🐣

Thomas Verleye thomasverleye

🥚
🐣
View GitHub Profile
@Vestride
Vestride / encoding-video.md
Last active August 27, 2024 16:19
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@bastianallgeier
bastianallgeier / loaded.css
Created December 2, 2011 10:57
I'd love to have a :loaded pseudo selector in css, which makes it possible to style elements when they are actually loaded – like images, iframes or the entire document
img {
opacity: 0;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
}
img:loaded {
opacity: 1;