Jump to content
Search Community

Swiper with gsap

battleaxe10000 test
Moderator Tag

Recommended Posts

Firstly, I tried to get my swiperSlider into codepen, but I didn't do very well there I'm afraid ()

 

I do, however, have a more working version i vscode (see image)

This slider autoslides and uses a fade-effect.

 

What I'm trying to do is implementing some gsap to this slider. The problem is that the animation only work on the very first slide.

 

I have tride refs, classNames, arrays, forEach, to write each "SwiperSlide" on its own (without looping), and more. But I always get the same result.

I get that gsap reccons the first slide and start the animation, but I can't seem to make it clear to gsap when a new slide enters.

 

Some help here would be great. Thanks

 

If you need more info, just let me know. (And of course, if you know how to get it done in codepen 👍).

swiper.png

See the Pen qBxawaz by battleaxe (@battleaxe) on CodePen

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