FitVids.JS is a lightweight jQuery plugin that makes embedded videos from YouTube, Vimeo, and other services responsive and fit their containers. It solves the problem of fixed-width video embeds breaking responsive layouts by automatically calculating and applying the correct aspect ratio. The plugin wraps video iframes in a container and uses CSS to make them scale fluidly with the width of their parent element. FitVids works by detecting embedded videos, calculating their aspect ratio, and applying CSS that maintains that ratio as the container resizes. The plugin is simple to implement, typically requiring just a single line of JavaScript to target and convert all videos on a page. It's commonly used in responsive WordPress themes, blog posts, and any website where embedded videos need to adapt to different screen sizes. While modern CSS has aspect-ratio support, FitVids remains useful for broader browser compatibility.
Used alongside FitVids.JS
Technologies most often detected together with FitVids.JS across our crawl sample.