Fx.TextMorph is a class that form text element.
- [Options][]
#JS
var myTextMorph = new Fx.TextMorph(el, {options});
- el - (element) the id of the element or the element itself.
- options - (options) a key/value set of options.
- width: (string), the width of the element. (Default: the width of the actual element)
- height: (string), the height of the element. (Default: the height of the actual element)
- lineHeight: (string), the line-height of the element. (Default: the line-height of the actual element)
- draw: (string), the result form. (Default: null, 6 are provided : circle, trianglebottom, triangletop, trapeze, diamond, fir)
- functions: (function), the function who draw the form, if exist, this function is the same on right and left. (Default: null)
- functionRight: (function), the function drawing the right of the div. (Default: the function use by circle)
- functionLeft: (function), the function drawing the left of the div. (Default: the function use by circle)
- debug: (boolean), view the elements (div) to draw the text. (Default: null)
- backgroundcolor: (string), the css background-color of elements (div) used to draw the form. (Default: null)
- shy: (boolean), to have better result, add soft hyphen in the text. (Default: true)
- draw: (string), the result form. (Default: null)
- (object) A new Fx.TextMorphElement instance.
Morphing using an div:
#JS
var circle = new Fx.TextMorph($('circle'),{
width: 600,
height: 600,
lineHeight:15
});