cpshop
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by cpshop
-
-
It mean i use TweenMax for Exp:
var colors = ["red", "blue", "green", "purple", "pink", "yellow", "orange"],
tl = TweenMax.staggerTo(".box", 1, {
cycle : {
y : [75, 0, -75],
backgroundColor : function (i) {
return colors[Math.floor(Math.random() * colors.length)];
}
},
ease : Power2.easeInOut
}, 0.05);Is it ok. And i want creat button id="return" when i click it will repeat TweenMax
-
Exp:
$(document).ready(function(e) {
var colors = ["red", "blue", "green", "purple", "pink", "yellow", "orange"];
tl = new TweenMax({delay:0.5});
tl.staggerTo(".box", 1, {
cycle : {
y : [75, 0, -75],
backgroundColor : function (i) {
return colors[Math.floor(Math.random() * colors.length)];
}
},
ease : Power2.easeInOut
}, 0.05);
$("#return").click(function(){
tl.restart();
})
});But i see browser err(tl.staggerTo is not a function).Please help me
-
Its very usaful for me. Thanks so much
- 1
-
Hi cpshop
Welcome to the GreenSock forums.
I think this blog post can help you. Lots of great info about perspective:
Happy tweening.
It's useful fo me. Thanks so much
-
I don't understand what the effects of perspective in TweenLite.set function.Explain me, please!.And i find method perspective where???.Thanks you
Exp:
TweenLite.set("#quote", {perspective:400});
How i can creat funtion return TweenMax ?
in GSAP
Posted