Category: webdev

canvid.js tiny library for playing video on canvas elements

Half of the trick is done by converting the video into a long JPEG sprite, which is done beforehand with ffmpeg + ImageMagick. ffmpeg -i myvideo.mp4 -vf scale=375:-1 -r 5 frames/%04d.png montage -border 0 -geometry 375x -tile 6x -quality 60% frames/*.png myvideo.jpg The other half is the library. Better than animated GIFs.

Emmet – The essential toolkit for web developers

Here’s an example: this abbreviation #page>div.logo+ul#navigation>li*5>a{Item $} …can be transformed into <div id=”page”> <div class=”logo”></div> <ul id=”navigation”> <li><a href=””>Item 1</a></li> <li><a href=””>Item 2</a></li> <li><a href=””>Item 3</a></li> <li><a href=””>Item 4</a></li> <li><a href=””>Item 5</a></li> </ul> </div> Emmet is a plugin for many popular text editors which greatly improves HTML & CSS workflow: via Emmet — the essential… Read more