Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Space Between Option #4263

Open
emon4u opened this issue Jun 11, 2023 · 6 comments
Open

Feature Request - Space Between Option #4263

emon4u opened this issue Jun 11, 2023 · 6 comments

Comments

@emon4u
Copy link

emon4u commented Jun 11, 2023

Is there any option to add space between sliders or will you add one?

Such as SweeperS, and OwlCarousel. Now we added space with a custom margin but the option to add space from the script would be nice.

@bracket-web
Copy link

Truly needed option for this slider it's very useful

@mosharofkhandokar
Copy link

It's very useful when we are working on responsive can you guys please add this options?

@layerdrops
Copy link

When most sliders give a gutter option in between sliders why are you guys not giving that? very useful feature you should add With this feature it will be a full packed slider.

@samratislamtushar
Copy link

Please add a option for gutter option in between sliders that's very useful feature.

@pulaknondi
Copy link

The feature is most important please add this feature.

@rr-it
Copy link

rr-it commented Jan 17, 2024

As it is 2024 the browsers have evolved and here is a working solution for modern browsers!

Use clip-path: 🎉

/* gutter width: 20px */

.slick-slider {
  margin-left: -10px;
  margin-right: -10px;
}
.slick-list {
  clip-path: inset(0 10px 0 10px);
  /* warning: do not set `margin` or `padding` to anything other than `0` here! */
  margin: 0;
  padding: 0;
}
.slick-slide {
  margin-left: 10px;
  margin-right: 10px;
  background-color: thistle;
}

Also see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants