exports

exports

Wrap the last X words in an HTML tag to prevent them from wrapping (i.e. orphans)

Constructor

new exports(el, opts)

Source:
Parameters:
Name Type Description
el HTMLElement iframe element
opts Object Options
Name Type Attributes Default Description
defaultAspectRatio number <optional>
9/16 Fallback aspect ratio if height and width are undefined
forceRatio number | boolean <optional>
false Aspect ratio override (ignores iframe’s actual dimensions)
inlineStyles boolean <optional>
true Apply inline styles (set to “false” if using CSS)
wrap boolean <optional>
true Whether or not to add a wrapper div to the iframe. Setting to “false” means the video can’t be displayed wider than its original width.
classes string <optional>
"" Class(es) to add to the wrapper or iframe (depends on wrap option)