Converse converse.js

Class: exports

exports(el, optionsopt)

new exports(el, optionsopt)

Creates a new ConverseGif instance

Parameters:
Name Type Attributes Description
el
options Object <optional>
Properties
Name Type Attributes Default Description
width Number <optional>

The width, in pixels, of the canvas

height Number <optional>

The height, in pixels, of the canvas

loop Boolean <optional>
true

Setting this to true will enable looping of the gif

autoplay Boolean <optional>
true

Same as the rel:autoplay attribute above, this arg overrides the img tag info.

max_width Number <optional>

Scale images over max_width down to max_width. Helpful with mobile.

onIterationEnd function <optional>

Add a callback for when the gif reaches the end of a single loop (one iteration). The first argument passed will be the gif HTMLElement.

show_progress_bar Boolean <optional>
true
progress_bg_color String <optional>
'rgba(0,0,0,0.4)'
progress_color String <optional>
'rgba(255,0,22,.8)'
progress_bar_height Number <optional>
5
Source: