Make every video on your website responsive – simple!

There is a lot of talk about responsive images but what about videos? Well, we now have a way to make your videos responsive. This is made possible by using a small Jquery library called fitvids.js. It can be downloaded from here.

All you need to do is include the js library and add this to your main JavaScript script:

[cc lang=”javascript”]


Here is a video explaining it in greater detail:

I added this change to kingluddite and now every video I have on it is responsive. Pretty cool, I must say.

Leave a Reply

Your email address will not be published. Required fields are marked *