
new2gsock
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by new2gsock
-
-
I want to use TeenMax.to to move an image from off outside a div to the center of the div, but the div is responsive so I can't use a fixed pixel destination. Do I just calculated width/2 or does greensock have a way to move to center?
-
Here's my dragdrop code:sym.$('card2').draggable({opacity:.5,revert:'invalid'});sym.$('droptarget2').droppable({accept:sym.$("card2"),drop: function() {sym.getSymbol("card2").play();sym.getSymbol("droptarget2").play();}}
);
I want to have 2 different actions happen depending on the filename.
ie.
if (droppedfilename=="qs.png") {
// accept and fade out
} else {
// don't accept
}
How do I detect the filename of the dropped image.
how do I animate to center on responsive container
in GSAP
Posted
Excellent thanks