Skip to content

Is it possible to use CSS transforms to scale swiper-slide items in the following way… #4702

Answered by marcamos
marcamos asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone following along, I figured out how to achieve my goal. Rather than rely on Swiper's classes, I simply did this:

  • Used Swiper's fade effect
  • Set the speed to 0 (so that the next slide appears immediately)
  • Used CSS keyframes to handle the transition in and out
  • Ensured that the Swiper delay and the CSS keyframes animation length were exactly the same

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marcamos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #4701 on June 23, 2021 19:58.