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

Last active slide in the carousel #859

Closed
sau-152mm opened this issue Dec 11, 2014 · 4 comments
Closed

Last active slide in the carousel #859

sau-152mm opened this issue Dec 11, 2014 · 4 comments

Comments

@sau-152mm
Copy link

How to get the index of the last active slide in the carousel for example if it has 4 active slide?

@MariusRumpf
Copy link
Contributor

You may search for the last element containing the slick-active class jQuery('.slick-active').last(). A selector like this might be called in the onBeforeChange, onAfterChange methods.

For fixing the space on the last element in the slides shown you can use a css fix suggested here: #582

@sau-152mm
Copy link
Author

Thank you for your help.

@AleksaButterfly
Copy link

This is a old thread but if someone is still looking for help there is a much cleaner and easier way to remove css or whatever from the last active item.

For example if you have three active items:
.slick-active + .slick-active + .slick-active { padding: 0; /* or whatever */ }

@najmuddinrks
Copy link

how to adjust slick slider with proper arrow width and margin adjust kindly help me that

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

4 participants