Examples
Example 1 - basic exampleLorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur
Example 2 - non-wrapping textLorem ipsum dolor sit amet, consectetur
Example 3 - recalculating on container changeDemonstrates:
- recalculating font size on window resize
onStart
and onFinish
callbacks (see log message in the console)
Lorem ipsum dolor sit amet, consectetur
Example 4 - recalculating on content changeChange the input text and the font size will be updated to fit the text in the div
Lorem ipsum dolor sit amet, consectetur
Example 5 - fails to fit text because fontSizeMin
is too big. Shows a message in the console.Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur