Skip to content

Responsive iFrame. Keep your iframe proportions when resizing.

License

Notifications You must be signed in to change notification settings

helixge/jquery.responsive-iframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery.responsive-iframe

jQuery plugin to make iframe elements responsive by keeping the same ratio. Useful for youtube embeded videos.

Example

$('iframe').responsiveIframe();

or by speciying a specific width to height ratio

$('iframe').responsiveIframe({ratio: 9/16 })

Options

The following options can be supplied as arguments

ratio

Numeric value. Defined width by height ratio Default value is 0.5625 (i.e. 9 / 16).

About

Responsive iFrame. Keep your iframe proportions when resizing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published