question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prevent first/last pages from sliding further than the carousel's borders

See original GitHub issue

Issuehunt badges

Feature

New Prop to stick first/last CarouselItems to the edges, regardless of the value of centered prop, always displaying a full page.

Context

When slidesPerPage is greater than 1, reaching the first or last element adds unnecessary blank space. Instead, getTransformOffset() could prevent the carousel from sliding further, allowing the entire page to remain visible (respecting slidesPerPage at all times).

Unwanted behaviour:

CodePen: https://codepen.io/anoz/pen/OJVmBxB

Screenshot 2020-02-28 at 16 36 45


IssueHunt Summary

Backers (Total: $0.00)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:29 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RobertHebelcommented, Jul 23, 2020

@aayush420 We are working on restoring funding for already opened PRs. On the next Thursday, I will be able to re-assign money for this issue. Is it ok for you to wait for the funding one week?

And regarding bug @piotr-s-brainhub has mentioned it’s not caused by your code so I think everything looks 👍 .

0reactions
issuehunt-app[bot]commented, Jul 1, 2022

@roberthebel has cancelled funding for this issue.(Cancelled amount: $59.00) See it on IssueHunt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable Prev Control on first slide and disable Next control on ...
Just use infite: false and create a custom css for class slick-disabled. Eg. JS - jQuery $('.my-slider').slick({ infinite: false, ...
Read more >
Step Carousel Viewer - Dynamic Drive DHTML Scripts
This script loads and displays a larger image inline on the page when a thumbnail is clicked on. Great for letting visitors preview...
Read more >
How to stop windows sliding between open applications
Eg, I have Safari running with an active window. I then open a Word document or a second browser, or any other application...
Read more >
All other San Diego fixes - Product Documentation | ServiceNow
Additional requirements for all San Diego features and products ... jobs require more than a one time clean-up to keep additional jobs from ......
Read more >
Angular directives for Bootstrap - AngularUI
As soon as you've got all the files downloaded and included in your page you just need ... Use a <uib-carousel> element with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found