Jump to content
Search Community

compli

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by compli

  1. 5 hours ago, GSAP Helper said:

    It's pretty tough to troubleshoot without a minimal demo - the issue could be caused by CSS, markup, a third party library, your browser, an external script that's totally unrelated to GSAP, etc. Would you please provide a very simple CodePen or CodeSandbox that demonstrates the issue? 

     

    Please don't include your whole project. Just some colored <div> elements and the GSAP code is best (avoid frameworks if possible). See if you can recreate the issue with as few dependancies as possible. If not, incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, then at least we have a reduced test case which greatly increases your chances of getting a relevant answer.

     

    Here's a starter CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo

     

     

    If you're using something like React/Next/Vue/Nuxt or some other framework, you may find StackBlitz easier to use. We have a series of collections with different templates for you to get started on these different frameworks: React/Next/Vue/Nuxt.

     

    Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. 

    Surely,
    here is the code that I'm using on the landing page with its CSS.

    https://stackblitz.com/edit/react-bx89de?file=src%2FLanding.css

    The code works as expected when I host it on vercel, but works buggy(as shown in the first video) in localhost

  2. 2 hours ago, GSAP Helper said:

    Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. 

    Surely, 
    https://stackblitz.com/edit/gsap-react-basic-f48716-j9rvrq?file=src%2FApp.js
    https://gsap-react-basic-f48716-j9rvrq.stackblitz.io
    Here is a demo of what I've created. I couldn't figure out here how to make the marquee reverse at any point from the middle.
    Example:
    Lets say the marquee has gone from 0% to 60% and then direction is changed, so instead of going from 100% to 0% it should go from that 60% to 0%


    Edit: I figured it out, but then now the reverse speed sometimes matches the original speed, sometimes its less, help me out with that please

×
×
  • Create New...