Jump to content
Search Community

vlrftps

Members
  • Posts

    3
  • Joined

  • Last visited

Everything 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!
  2. Okay, so baisicly this is the code, but I am not able to reproduce the bug here: https://codepen.io/valeri-karageorgiev/pen/vYraNaR
  3. 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...
×
×
  • Create New...