Jump to content
Search Community

GSAP Slider Direction Issues

Chybosky test
Moderator Tag

Recommended Posts

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I take this project and rework it to do these other things...?" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

I'd definitely recommend updating to the more modern GSAP 3 syntax (you're using a VERY old syntax - TweenMax/TweenLite/TimelineMax/TimelineLite are all obsolete now, having been consolidated into a simple "gsap" object). See:

 

 

You are welcome to post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 

 

Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 

Link to comment
Share on other sites

Unfortunately we just don't have the resources to provide free code conversion proofing, but I do notice several problems: 

  • There is no className tweening support in GSAP 3. That was intentionally removed because it's much better to animate the individual properties rather than having GSAP loop through every conceivable property, compare the before/after, isolate the changes, and create the animation accordingly. 
  • I don't believe that animating backgroundPosition in that way will work because it's not numeric. You'd need to convert things to use numbers instead. Or create your own plugin to do the calculations and interpolations. 
  • Minor note: you're using the old easing syntax. There's a much shorter, cleaner string-based syntax now. Like ease: Power3.easeInOut becomes ease: "power3.inOut"

Good luck!

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...