Responsive wrapper for iframe elements (e.g., YouTube and Vimeo videos).
All components are built upon the CodyHouse Framework.
This Responsive iframe component allows you to display a responsive iframe element whose height is modified according to the aspect ratio of its content.
It can be used to embed content like YouTube or Vimeo videos (that are not responsive by default).
The default aspect ratio used for the iframe is 16:9 (which is the standard YouTube video aspect ratio).
You can create variations of the
.responsive-iframe class to cover different aspect ratios.
For example, for the 4:3 ratio you can use the following class modifier:
padding-bottom: 75%; // 4:3
Bug Report & Feedback
Get in touch: suggest a component or report a bug.