Jump to content
Search Community

Punchify Me

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Punchify Me

  1. Hi @Cassie

     

    Many thanks, I tried with the mask-image property, which is my preferred solution as I have to show content and I don't necessarily need to morph the shape. I have tried the mask-image approach in your article, modified to take into consideration the technical constraints. 

     

    However I still have a lag between the mouse position and the mask, and I am unable to cover the edges (top and bottom) of the section with the mask. I am sure it has to do with my calculations, but I cannot seem to get it right. 

     

    here is a new pen : 

    See the Pen rNyOdoG by sunshinetainted (@sunshinetainted) on CodePen

    • Like 1
  2. I am trying to achieve an effect similar to the background reveal with mouse movement as seen here : https://www.luckyfolks.fr/

    image.thumb.png.4a533056bf6fbe3f1b8baba0537f5576.png

     

    I am not really sure how and where to start. The svg code for the blob is:   

     

    <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
    viewBox="0 0 1920 980" style="enable-background:new 0 0 1920 980;" xml:space="preserve">
    <style type="text/css">
    .st0{fill:#FFC845;}
    </style>
    <g>
    <path class="st0" d="M0,0v980h1920V0H0z M1646.8,396.1c-0.3,4.1-1.7,8.3-2.2,12.4c-1.4,12.3-4.4,24.4-7,36.3
    c-0.9,4-1.8,7.9-2.9,11.9c-1,3.9-2.1,7.9-3.3,11.8c-1.8,5.9-3.7,11.7-5.8,17.5c-0.7,1.9-1.4,3.9-2.2,5.8c-1.5,3.8-3,7.7-4.7,11.5
    s-3.3,7.6-5.1,11.4c-4.5,9.5-9.4,19-14.9,28.4c-5.4,9.2-27.5,44.9-38,56.3c-1.8,2-3.7,3.9-5.6,5.8c-3.8,3.8-7.7,7.5-11.7,11.1
    c-8,7.1-16.5,13.7-25.3,19.8c-8.8,6.1-18,11.8-27.5,17.1c-14.2,7.9-29,14.9-44.1,21.3c-7.6,3.2-15.2,6.2-22.9,9.1
    c-2.6,1-5.1,1.9-7.7,2.8c-12.9,4.6-25.9,8.9-38.8,13c-7.7,2.4-15.5,4.8-23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0.1,4.5-0.1,6.8-0.2c20.6-0.4,43.7-0.1,72.5,0.7
    c3,0.1,6,0.2,9,0.3c6,0.2,12.1,0.6,18.2,1c3.1,0.2,6.1,0.4,9.2,0.7c7.7,0.6,15.3,1.4,23,2.5c4.6,0.6,9.2,1.3,13.8,2
    c1.5,0.3,3,0.5,4.6,0.8c4.6,0.8,9.1,1.7,13.6,2.7c1.5,0.3,3,0.7,4.5,1c4.5,1,9,2.2,13.4,3.4c5.9,1.6,11.8,3.4,17.5,5.4
    c2.9,1,5.7,2,8.6,3.1c2.8,1.1,5.6,2.2,8.4,3.4c55.3,23.7,98.2,78.6,127.3,129.1c1.3,2.3,10.6,19.1,16.2,36.7
    C1650.5,366.1,1648,381.6,1646.8,396.1z"/>
    </g>
    </svg>

    I would highly appreciate any tips and help on this. Thank you. 

  3. Hello,

     

    I am having some issues with SVGMorph and ScrollTrigger. A reduced case demo is on codepen :  (not responsive yet)

     

    1. ScrollTrigger : 

    • Abrupt pinning: I notice a slight jump when the slider section pins to the top of the screen and again when it repins on re-enter. I have tried modifying with start and end values but that does not seem to change the behaviour. 
    • Animation end : I would like to wait for the last wave to completely transform before unpinning the section and scrolling down to the next section.

     

    I suspect that both these problems are due to me not properly defining the start and end or the scrub / snap  values.    

     

    2. SVG Morph: I would like the waves to morph continuously based on scroll speed. Right now, I have to scroll a lot or scroll really slowly  for the morphing to be evident. 

    I would appreciate inputs on how to solve these problems as well as any code errors.  

     

    Thank you :)

    See the Pen gOMggeZ by sunshinetainted (@sunshinetainted) on CodePen

×
×
  • Create New...