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

show2 not working on mobile but works on Bigger devices #52

Closed
charlesaloaye opened this issue Aug 27, 2022 · 4 comments
Closed

show2 not working on mobile but works on Bigger devices #52

charlesaloaye opened this issue Aug 27, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@charlesaloaye
Copy link

The slider-item-show2 class not working on mobile but works on Bigger devices

@nicped
Copy link
Member

nicped commented Aug 29, 2022

Thank you for the report/question. The behavior is responsive by design so it collapses to one slide on devices smaller than 62rem@16px = 992px.

You can simply override it though - by setting the item count explicitly like this:
<div class="swiffy-slider slider-item-helper slider-item-show2" style="--swiffy-slider-item-count: 2;">

@nicped nicped self-assigned this Aug 29, 2022
@nicped nicped added the question Further information is requested label Aug 29, 2022
@nicped nicped closed this as completed Aug 29, 2022
@charlesaloaye
Copy link
Author

charlesaloaye commented Aug 29, 2022 via email

@nicped
Copy link
Member

nicped commented Aug 29, 2022

I have added a slider-item-show2-sm class that will make 2 slides on small devices - will be out with next release of the slider.

@charlesaloaye
Copy link
Author

charlesaloaye commented Aug 29, 2022 via email

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

No branches or pull requests

2 participants