Jump to content
Search Community

vlrftps

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by vlrftps

  1. Okay I managed to fix it. I found what was making the issue. The problem was related to the element that was set to Relative position and it was pushing the whole animation timeline like 500-600px for some reason, but when I changed the position from relative to absolute it all got fixed... You can see the funciton that I used below. 

    $(".need-animated").each(function (index) {
      let triggerElement = $(this);
      let targetElement = $(this);
    
      let tl = gsap.timeline({
        scrollTrigger: {
          trigger: triggerElement,
          // trigger element - viewport
          start: "bottom 80%",
          end: "top top",
          scrub: 1
        }
      });
     tl.from(
        targetElement,
        {
         fontSize: "8em",
        y: "-190%",
        duration: 1
        },
        {

    @mvaneijgen thank you for your help!

    • Like 1
  2. I have weird delay happening when using split text Line animation. So I have 5-6 sections where I gave split text animation on headings and body text. With start of animation:  start: "100px bottom", it is working fine till second or third section, but when I reach the fourth and fifth section the animation is not happening 100px from bottom... it is reaching almost the center of the viewport... Any ideas?  The site is made in Webflow - here is the link. The weirdest thing is that when I moove the section to be Second, the animation works fine...

     

     

     

    Img01.jpg

    Img02.jpg

    Img03.jpg

×
×
  • Create New...