This time I will share jQuery Plugin and tutorial about jQuery Plugin For Responsive Flexible Iframes – Flexy, hope it will help you in programming stack.
Flexy is a lightweight jQuery plugin designed for responsive, cross-browser website that automatically scales the iframes
to make them adapt to any screen size. Suitable for any iframe elements like Youtube and Vimeo vidoe players.
Basic usage:
1. Load jQuery JavaScript library and the jQuery flexy plugin at the bottom of the html page.
1 |
< script src = "//code.jquery.com/jquery-1.11.3.min.js" ></ script > |
2 |
< script src = "flexy.js" ></ script > |
2. Just call the flexy()
method on the iframe
element within the document and we’re done.
3 |
classname: 'flexy-wrapper', |
3. Available options.
07 |
classname: 'flexy-wrapper' , |
Change log:
2016-10-12
This awesome jQuery plugin is developed by crewstyle. For more Advanced Usages, please check the demo page or visit the official website.