Skip to content

Applying Scale to Active Slide Causes Scrolling Offset #684

Answered by NaotoshiFujita
SgiobairOg asked this question in Q&A
Discussion options

You must be logged in to vote

You can do this:

  1. Add a div inside each slide, and scale it instead of a slide element itself
  2. Add enough padding top and bottom to the track element

The result will be the slider on the top of my site (https://splidejs.com/).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SgiobairOg
Comment options

Answer selected by SgiobairOg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants