Diaco
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Diaco
-
-
- 5
- 1
-
it's native javascript event : https://developer.mozilla.org/en-US/docs/Web/Events/touchstart
- 5
-
- 2
-
-
Hi chriswyl
it's about transform matrix multiplication , in your third example , pls check the result with remove x,y attributes from text and set transform to this :
transform=" translate(100,100) rotate(40 100,100) "
but if you want to have that result you liked , pls try this :
TweenMax.set($("#t2"), { attr:{ x:x , y:y } , rotation:rot , svgOrigin:x+' '+y });
- 5
-
in addition to Carl and Rodrigo , if i understand correctly , you can simply use SlowMo ease type too :
tl .to('#el', 3, {x:200, ease:Linear.easeNone}) .to('#el', 3, {x:0, ease:Linear.easeNone}) .to('#el', 3, {y:200, ease:Linear.easeNone}) .to('#el', 3, {y:0, ease:Linear.easeNone}) .from(tl,tl.duration(),{timeScale:5,ease:SlowMo.ease.config(.6,.7, true)},0) //.from(tl,tl.duration()-2,{timeScale:5,ease:SlowMo.ease.config(.6,.7, true)},1)
- 3
-
you can simply use onUpdate callback with a tween of simple object , like this :
var XY = {x:0,y:0}; TweenLite.to(XY,1,{bezier:{values:[...]},onUpdate:function(){ console.log(XY.x) yourElem.setAttribute( "attribute" , XY.x ); }})
- 2
-
Hi johnnyno
Pls use x,y properties instead of top/left , pixel snapping is cause of that jerky motion , with x,y you will use subpixels
- 3
-
Hi hanslibuzli
pls add tiny amount of rotation to your tween , like this :
TweenLite.set(".band", { scale : 1 , rotation:0.01 });
- 1
-
-
- 6
-
Hi SoL2Squiz
var animate = TweenMax.to('.MySprite2', 1, { repeat: -1, // >> loops the sprite ( -1 = infinity loop ) x: -2250, // >> -( width - width/frame ) ease: SteppedEase.config(15) // >> total frame - 1 });
pls load TweenMax too- 1
-
-
- 5
-
as blake suggested before , you can use _gsTransform object for most of css transform properties ,
and for other properties like left ,width , ...etc you can use one of these methods :
1- elem.style['propery name'] , like this : elem.style['width']
2 - CSSPlugin.getStyle() , like this : CSSPlugin.getStyle( elem , "width" );
3 - getComputedStyle(elem) , like this : var style = getComputedStyle(elem); console.log( style['width'] )
don't forget every TweenLite instance handles tweening of js objects as raw data ( whithout css prefixes , unit of measurement ) and getting/setting of css properties is CssPlugin's duty . actually you can get raw values from GSAP engine , but it's too deep and needs some really unnecessary functions when you can simply get data with above methods .
- 5
-
Hi Sophia
i think this topic can help you : http://greensock.com/forums/topic/12534-pick-value-between-2-css-values-using-gsap/
- 2
-
you can simply use circle cx/cy as svgOrigin reference , so your group center is : svgOrigin: ' 389.74 420.437 '
- 2
-
-
-
-
-
yep , today Jonathan 's solution is really handy and cool with stagger/cycle method ( v1.18.2 )
- 1
-
-
Hi Lynx
pls check this topic : http://greensock.com/forums/topic/11828-back-with-gradient-changing-offset-value/
- 2
Need to force Tween to complete
in GSAP
Posted
Hi mthomson
pls tween same property with hover over / out functions , currently you tween progress on over and time on out