Jump to content
Search Community

Diaco last won the day on December 20 2017

Diaco had the most liked content!

Diaco

Business
  • Posts

    1,215
  • Joined

  • Last visited

  • Days Won

    86

Community Answers

  1. Diaco's post in apply rotation to each of a dynamically generated class was marked as the answer   
    Hi 
    my friend your codepen generated ellipses completely ,  but they'r out of SVG viewbox ( 800 * 800 ) , var y=900 !!!  and the syntax's correct .

    See the Pen ncrFe by anon (@anon) on CodePen


  2. Diaco's post in Issue animating page turn was marked as the answer   
    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"; } } );
×
×
  • Create New...