Diaco
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Diaco
-
-
Hi hackfin
u can change zIndex and Z translation simply with this method :
$(".page").click( function() { if (pageLocation[this.id] == undefined || pageLocation[this.id] =="right") { var $Zz = ($(".left").length)+1 ; TweenMax.to($(this), 1, {force3D:true,rotationY:-180,className:'+=left',z:$Zz,zIndex:$Zz}); TweenLite.set($(this), {className:'-=right'}); pageLocation[this.id]= "left"; } else { var $Zz = ($(".right").length)+1 ; TweenMax.to($(this), 1, {force3D:true,rotationY:0,className:'+=right',z:$Zz,zIndex:$Zz}); TweenLite.set($(this), {className:'-=left'}); pageLocation[this.id]= "right"; } } );
- 2
-
Hi Jackalready i done the same way , but for me it was interesting to know with <body> , anyway thanks for your advice , helpful as alwayswith best regards
-
hmmm... finally i can reduce the distortions with " dragResistance : 0.5 " but now dragging work at half-speed , is there any better solution !?... and still not working with FF / IE !
-
Hi jack
i`m using Draggable VERSION: 0.10.4
and usually use GSAP with adobe Edge animate . adobe edge create contents in Stage div , so i have only a dive#Stage in html and all of contents created in that . and now for a parallax effect i need to link adobe timeline to gasp timeline and body Scroll with dragging scroll but have this issue ! it seems the scroll proxy avoid to do correct behavior in this case with IE and FF !
and for Distortion pls check this out >
See the Pen mLsnl by anon (@anon) on CodePen
pls try to dragging very slowly , pixle to pixle , and see what i mean about Distortion , pls check that with FF/IE too .
thanks in advance
-
Hi guys
i have 2 problem here when use Drag Scroll with $("body") as dragable :
1 - in FireFox and IE that pinned and dosn't drag but work great in chrome and safari !! ... i think maybe this's a proxy issue !!! what's the solution !?...
2 - dragging slowly cause appears heavy distortions on draging !?...
-
Hi again
the default EASE is cause of that effect , try this : ease : Linear.easeNone
-
Hi Maximetry this :preload your images , change your src attr with one Tween and easily control that :
var anim = {frame:0} ;
TweenMax.to(anim , 1, {frame:"+=25", roundProps:"frame", onUpdate:updateHandler });
function updateHandler() {
image.attr("src", "images/character"+anim.frame+".png");
}with this method you don't need extra DOM objects .hope this helpsEdit : u can find easy way to preload images by Rodrigo here :http://forums.greensock.com/topic/10115-get-percent-of-images-loaded-on-page-for-tweening-preloader/
- 2
-
Hi JACK
WOW... that`s exactly what I've been looking for .
thanks dude
- 1
-
Hi guys
is there any way to find the direction of dragging !?
i mean that onDrag function return one of these value :
left / up-left / up / up-right / right / right-down / down / down-left !?
thanks in advance
-
Hi guys again
Thanks you JACK , yes this's what I've been looking for .
thanks all of you guys
-
hi again jonathan
i just want to know how can limit the variable between 1 - 36 and have loop between these num.
i want to use variable as image name ( myImg.src= "360/s"+movie.frame+".jpg" ) ,
dont want to have these numbers : Negative numbers , 0 , >36 for my variable
but can`t figure out how
-
Hi jonathan
thanks for your replay
i already saw these examples and tried to go another way , in the examples he changed background css position or all pictures loaded in dom , and i want to use variable as image name ( myImg.src= "360/s"+movie.frame+".jpg" )
i just want to know how can limit the variable between 1 - 36 .
anyway thanks again for your replay
-
Hi guys
i'm trying to make 360 object viewer with TweenMax and Draggable , but have some problems here ; the viewer has 36 frame and shouldn't have negative numbers and larger than 36 . on drag , how can loop the number of frame if that was >36 and <1 ?!...
i just want to know how can limit the variable between 1 - 36 .
Can anyone help me?
i made a codepen , pls check this out :
http://codepen.io/anon/pen/jnsjko
with best regards and thanks in advance
GSAP with easeljs
in GSAP
Posted
Hi mafox296
I must remind you that ; with CSSplugin you can animate CSS Properties of DOM elements , not Canvas objects !! you should animate Canvas shape Alpha property and redraw the stage on tween update .
maybe something like this :
...