Releases: Arttse/jquery.auto-text-rotating
1.3.2
1.3.1
1.3.0
New
Now you can use Animate.css animations!
Settings 'init' method
animation
animateCss
— use an external library CSS3 animations Animate.css.
animateCssClass
Type: string
Default: animated
Class element specified in Animate.css. Applies only to animation animateCss
.
animateCssAnimation
Type: string
or array
Default: ['bounceIn', 'bounceOut']
What animation from Animate.css perform animating. Applies only to animation animateCss
.
If you specify how string
, for example — animateCssAnimation: 'jello'
, it will be given only one animation.
If you specify how array
, for example — animateCssAnimation: ['fadeInLeft', 'fadeOutRight']
, the first value for the appearance, the second for the disappearance.
1.2.0
New
Settings 'init' method
animation
flipY
— the effect of flip horizontally.flipX
— the effect of flip vertically.
animationRotateDeg
Now you can use type array
If you specify how number
, for example — animationRotateDeg: 180
, it will be set to 0 with appearance and 180 with the disappearance.
If you specify how array
, for example — animationRotateDeg: [-90, 0]
, the first value for the appearance, the second for the disappearance. Excluding animation spin
, there will always be 0 for appearance.
1.1.0
New
Methods
Now you can use methods.
init
— Initialization. Start changing parts of the text with the settings. The basic method.
stop
— Stop the rotation of the text.
reinit
— Another initialization with the new settings.
Settings 'init' method
animation
no
— There is no animation effect. Sometimes the correct thing? Huh?
reverse
Reverse rotation of the text. From the end.
Settings 'stop' method
content
original
— inserts the original text which was prior to initialization.firstPart
— inserts the first part of the original text, separated by the specified separator.lastPart
— inserts the last part of the original text, separated by the specified separator.currentPart
— inserts the last shows part of the original text at the time of stop of rotation, separated by the specified separator.
separator
A separator for separating text into parts for insertion after the stop, it is necessary to content
.
trim
Remove whitespaces at the beginning and at the end of the text.
Fix
- Fixed
animation: 'spin'
in Internet Explorer 9. Now animation works correctly.