A Solution for Creating Fluid Video Widths In BP!
-
I love the new default BP theme’s ability to resize to fit almost any screen, phone, tablet, etc., but it is missing one key quality, dynamic video widths.
Enter FitVids; “A lightweight, easy-to-use jQuery plugin for fluid width video embeds.”
https://github.com/davatron5000/FitVids.js
Just add this to your themes header and that’s it:
`
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$(“#content”).fitVids();
});
`It currently supports: Vimeo,YouTube, Blip.tv, Viddler, Kickstarter
You can add support for any type of embed using the following:
` $(“#thing-with-videos”).fitVids({ customSelector: “iframe[src^'http://mycoolvideosite.com'], iframe[src^='http://myviiids.com']“});
// Selectors are comma separated, just like CSS`PS
@r-a-y @karmatosed
I know I created a couple other topics related to this, but I’m having a hard time finding them.PSS
For those also looking for fluid images check this out:
http://unstoppablerobotninja.com/entry/fluid-images/
You must be logged in to reply to this topic.