rIframe reads the user's viewport size and adjusts the size of all desired iframes on a page, making sure they fit right in the user's screen.
The plugin is ideal for deploying on mobile versions of a site, making sure data doesn't go off-screen and the user can access the content of those iframes with ease.
rIframe adjusts both the width & height of an element, keeping the iframe's original aspect ratio intact and not deforming the content in any way on smaller screens.
rIframe can be used on multiple iframes on the same page and the plugin is also content agnostic, meaning you can use it with video, image, or basic HTML iframe embeds.
A simple example is included with the download package.
Requirements:
- JavaScript enabled on client side
- jQuery
Comments not found