Jump to content
Search Community

Goldendust20

Goldendust20 test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello, I have this text scroller I've built but it glitches after what I suspect is when it restarts. Is there any way to make this a smoother transition? I'm going to have a lot of these with various text/widths and there will also be a second row with the text in reverse just below it. 

 

Here's the website it glitches on: https://stable.stable-demos.com/who-we-are/ 

 

(Pen broken ? )

 

Thanks!

See the Pen xoMdMv by brittany-golden (@brittany-golden) on CodePen

Link to comment
Share on other sites

Hello Goldendust20 and welcome to the forums.

 

Your website surprised and disturbed me when I opened it because of all of the videos auto playing and offset just enough to make it creepy, hah. 

 

I'm not seeing any "glitch" on my Mac in Chrome. What sort of glitch is it? And what do you mean by the pen being broken?

  • Haha 1
Link to comment
Share on other sites

Hello @Goldendust20 and Welcome to the GreenSock Forum!

 

I'm not seeing that "glitch" on Firefox and Chrome Windows 10.

 

But if it was me I would convert your  jQuery css() to the GSAP set() equivalent.

 

So this way GSAP can keep track of what changes your doing outside itself:

 

// So convert this jQuery css():
$list.add($clonedList).css({
    "width" : listWidth + "px"
});

// To this using GSAP set():
TweenLite.set([$list, $clonedList],{
    "width" : listWidth + "px"
});

 

Notice how i added multiple CSS selectors within the square brackets [ ] for the target parameter of the set method?

 

GSAP set() : https://greensock.com/docs/TweenLite/static.set()

 

Happy Tweening!

  • Like 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...