Hi, thanks for your replies .
I made a couple of changes including your idea Diaco.
so now you can specify a easing function when creating the object.
var easingPower4 = new gsapTypeIt({
el: document.getElementById('ContainerEl'),
word: 'simple example',
easing: Power4.easeInOut
});
the easing option is set to Linear.easeNone by default.
you can use any easing function, in my codepen I am loading TweenLite, but you can load Tweenmax or EasePack.
I also added a charterPerSecond option this would make all rotating words type at the same speed. or will save you test/calculation when working with dynamic text, long paragraphs and such.
With a long text:
var cpsParagraphe = new gsapTypeIt({
el: document.getElementById('ContainerEl'),
word: 'Some long string ...............',
charterPerSecond: 3
});
With rotating words that have different length ( still have a little bug to fix with the appended words)
var rotating3 = new gsapTypeIt({
el: document.getElementById('ContainerEl'),
rotateWords: true,
delay: 0,
charterPerSecond: 3,
rotateWordsOptions : {
wordsList : ['can', 'have different length','but are typed at the same speed'],
cycle: false,
append: true
}
});
check it out on codepen