Jump to content
Search Community

sawacrow

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by sawacrow

  1. On 1/9/2023 at 7:05 PM, Rodrigo said:

    Hi @sawacrow,

     

    You already created a thread for this particular effect, so please keep all the related questions in that so it's easier for us to track where to help you with your GSAP issues regarding this.

     

    Thanks and Happy Tweening!

    Thank you very much

  2. On 12/12/2017 at 2:44 PM, OSUblake said:

     

    Hehe. And now you know why I hate SVG arc paths. :angry:

     

    Try this. Set the start and end to 360, and tween the end to 0. Instead of messing with the internals of the getPath function, swap the start and end parameters around in updatePath function.

     

    var arc = {  
      start: 360,
      end: 360,
      cx: 250,
      cy: 250,
      r: 150 
    };
    
    TweenMax.to(arc, 3, {
      end: 0,
      ease: Linear.easeNone,
      onUpdate: updatePath
    });
    
    
    function updatePath() {
      // clipPath.setAttribute("d", getPath(arc.cx, arc.cy, arc.r, arc.start, arc.end)); 
      clipPath.setAttribute("d", getPath(arc.cx, arc.cy, arc.r, arc.end, arc.start)); 
    }

     

     

     

     

    I can't make width and height 100%, does anyone know a solution?

  3. Instead of the 2nd sea picture in the circle, I want to see the transparent background and the red area in the background.
    My purpose of use: when the page is first opened, the background will become transparent and visible as the circle rotates clockwise.
    like the opening on this site for example: https://asmobius.co.jp/

     

    Only background image is added as "clip path". I think it's impossible with this technique. maybe there is an alternative way?

     

    my codepen link: 

    another example:

     

    See the Pen ExpZrVm by sawacrow (@sawacrow) on CodePen

×
×
  • Create New...