yes yes you are right, what i was tried is to create like this "TimelineMax.lagSmoothing()" and this is my code i'm try to achieve. this code work well, but i thought i can use that logSmoothing to my code. so every instant will work smoother. these instant come from database and show 10 or 15 instant in page and i was worrying about performance when it trigger so that why i ask that. thank for the advice. actually i'm new to GreenSock, i saw some couple of projects done with this library, and i was amaze and eager to learn this library and i use this everyday. if anything i'm doing wrong please advice. if you can please explain me bit more simple. i saw the demo, greensock beat all other library even velocity.js. nice work.
$('.db-album').append('<div class="first"></div><div class="second"></div><div class="third"></div><div class="four"><img src="img/vinyl2.svg" alt="" /></div>');
$(".db-album").each(function(i, e){
var album = new TimelineMax({paused:true});
var first = $(e).find('.first'),
second = $(e).find('.second'),
third = $(e).find('.third'),
fourth = $(e).find('.four img'),
fifth = $(e).find('.db-song-info'),
sixth = $(e).find('.db-song-play'),
seventh = $(e).find('.db-song-add');
album.to(first, 0.2, {rotation:0, boxShadow:'none', ease:"Power2.easeInOut"})
.to(second, 0.2, {rotation:0, boxShadow:'none', ease:"Power2.easeInOut"}, -0.1)
.to(third, 0.2, {rotation:0, boxShadow:'none', ease:"Power2.easeInOut"}, -0.1)
.from(fourth, 0.5, {x:-25, ease:"Power2.easeInOut"}, -0.1)
.from(fifth, 0.5, {x:-50, ease:"Power4.easeInOut"}, -0.1)
.from(sixth, 0.5, {y:-120, ease:"Power4.easeInOut"}, -0.1)
.from(seventh, 0.5, {x:50, ease:"Power4.easeInOut"}, -0.1);
e.animation = album;
});
$('.db-album').hover(over, out);
function over(){
this.animation.play();
}
function out(){
this.animation.reverse();
};