Jump to content
Search Community

Marquee without loop one time scroll

Vineeth Achari test
Moderator Tag

Recommended Posts

I'm sure I'm missing something obvious, but like @SteveS said wouldn't it be as simple as this?:

gsap.to(".typography-headline-hero", {
  xPercent: -100,
  duration: 6,
  delay: 0.2,
  ease: "none"
});

And if you only want that to happen the first time someone visits, then use a localStorage variable or cookie or something and tuck it inside a conditional statement.

Link to comment
Share on other sites

@kabocreative we love when "newbies" like you jump in and offer some ideas. That's exactly how you'll be come an expert! And it always makes the community richer and more well-rounded when a diversity of people contribute, even if the answers aren't "perfect". So keep it up! 🙌

 

If I understood correctly, it should be as simple as a .fromTo() that goes from xPercent: 100 to xPercent: -100:

See the Pen wvmdZye?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Is that what you're looking for @Vineeth Achari?

  • Like 1
  • Thanks 1
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...