Jump to content
Search Community

Juraj

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Juraj

  1. Hey guys. I am trying to make a morph shape with gsap plugin. The result I want to achieve is:

     

    THE GOAL IS:

    Find svg's with class "morph" and runs timeline animation only for the one's that is in the viewport.

    THE ISSUE I HAVE:
    I did some work in the codepen, but the issue is, that every time my window detects the svg class "morph" it start to animate all the shapes/timelines on the website - and not only the ones visible in the viewport.

    Any ideas how to adjust my codepen?

    Thank you in advance

    See the Pen xxGrmmv by jurajmolnar (@jurajmolnar) on CodePen

  2. Hey guys, I need a little help with splitText weird behaviour. Every single time i visit the staging site, splitText split lines wrongly. 
    I have to refresh and then everything looks, ok. Same thing when i resize the browser the text is not wrapping automatically like it should. Do you have any ideas of what might be wrong? 

    I use intersectionObserver to detect the item in viewport and then triggering the TweenMax function. 
    Thank you very much

    after-refresh.png

    before-refresh.png

    See the Pen dyyrYgV by jurajmolnar (@jurajmolnar) on CodePen

  3. @mikel i have one other little request. Imagine that i d like to use this animation on the page multiple times.

    Your code works great for one. But every single time the object is in the viewport (no matter which one), it runs the animation for all of the objects on the page. Any idea of how to make this work only for the item visible in the viewport?

    Many thanks man

  4. I am trying to make a rotation loop on my images only when they are in viewport. I want to pause this loop when they re out of the viewport. I am trying to use getClientBoundingRect to detect the position of my elements and I try to trigger the function when they are visible. The issue is that it only runs once. Console log is showing me that the viewport detection works fine, but the TweenMax.to animation is not working like it should. 

    I do not want to use ext. libraries for viewport detection.

    Any help is much than appreciated guys!

    Thanks

    See the Pen JjjbvvB by jurajmolnar (@jurajmolnar) on CodePen

×
×
  • Create New...