Add fancy animation/effects to letters.
- requires Jquery, TweenMax.
- manually tested to work on latest version of Chrome, Firefox, Safari and IE.
Demo link at http://htmlpreview.github.io/?https://github.com/simboonlong/textify.js/blob/master/index.html
Import the textify.css styles. Follow the structure in index.html.
<div id="split-1" class="split">something cool is coming</div>
<div id="split-2" class="split">yup this is awesome</div>
Basic options in textify.js are:
var splitOne = new SplitText( $('#split-1') );
splitOne.init().animate({
delay: 0,
x: 10,
y: 20,
rotationX: 165,
rotationY: 40,
rotationZ: 20,
duration: 1.3,
opacity: 0,
staggerDuration: 0.1,
easeType : Back.easeOut
});
Refer to TweenMax documentation for more information.
textify.js is licensed under the MIT license. (http://opensource.org/licenses/MIT)
Feel free to contribute.