Slider Pagination Concept

An experimental slider pagination using the jQuery UI slider. The idea is to use a simple navigation concept that preserves layout and style while allowing content to stay easily accessible.
Slider Pagination Concept

From our monthly sponsor: Take WordPress to a whole new level with Divi's incredibly advanced visual builder technology. Try it for free.

A pagination is an essential part of any content-rich website, such as a magazine or a blog. The classic pagination will consist of linked numbers and some maybe some arrows, a presentation that has its limits. If you have a lot of pages to show, your pagination will either grow out of proportion breaking the design, or, if you don’t want to show all pages, you’ll need to add some kind of access point for the pages in between, requiring an additional user action.

Thinking about a way to navigate pages in a more compact and novel way, we tried our luck with the jQuery UI slider. The idea of using a slider for this came from this brilliant Number Slider pen by simurai.

With a slider pagination we can reach any page quickly by just dragging the handle. Adding a set of arrows makes it easy to navigate to the previous or next page.

The main idea is to initially just show a little button with two arrows. The button shows the current page number and clicking on the arrows will navigate to the next or previous page:

SliderPagination01

Clicking on the button will make the slider appear; the button handle will be animated to the correct part of the slider. Now we can drag the slider to the desired page. Once we release the handle to drop it, the slider will go back to the initial state, with the updated page number:

SliderPagination02

Using a slider of this kind will not break a layout when there are many pages to display. It does require an additional click, though. But it might as well be a bit more fun to navigate πŸ™‚

What do you think? Is is going into an interesting direction for navigating pages or do you prefer the classic way?
Make sure to explore the project and let us know what you think.

Tagged with:

ML is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

http://www.codrops.com

Receive our bi-weekly Collective or official newsletter right in your inbox.

CSS Reference

Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.

It doesn't matter if you are a beginner or intermediate, start learning CSS now.

Feedback 32

Comments are closed.
  1. Nice work! Maybe it would be more intuitive to show the slider onmousedown instead of having to click the button first?

  2. Great concept! And I think with a little ajax you can show a mini preview when sliding the current page. Thanks!

  3. That’s a great use case! Might be cool to make the slider appear on “mouse down” and disappear on “mouse up”? Without having to toggle. Maybe tricky when the thumb position is not in the middle.

    • That would be great but yes, a bit tricky. Thank you for the feedback and kudos go to you πŸ™‚ Cheers, ML

  4. Nice, i like the idea.

    I’d be nice too if you could just click and drag on the fly, with the slider fading in on mouse down event.

  5. I also loved and used this idea in enterprise applications with huge data, and i can confirm is a very good solution to paginate when you have huge data… less clicks needed to move to any page number from any page number e.g try to move from page 1 to page 532 of 1000 with slider you can easly

    Here my old dojo version of it and my concept explaination:

    http://blog.creativeprogramming.it/?p=123

    sorry the screencast is down..

    But i get criticized…. see the comment, they wasn’t ready for that πŸ˜€
    i will re publish it now on github!

    • Hey Stefano, thanks for sharing your work, that’s great!
      I think it’s a very interesting solution, exactly for those reasons that you mention. And going to a specific page could be done with an input that appears when double clicking, for example. Keyboard navigation should be super-easy, too. So, I guess that criticism in the comments of your article is not that justified πŸ˜‰ Thanks for your feedback and make sure to send in the GitHub link! Cheers, ML

  6. ItΒ΄s a nice feature, but I would show the slider from the start. Adding a small thumbnailviewer as suggested above, is also a great extra feature. There is plenty of room in this example , to show the slider centered and still have arrows on either side if you would like to combine the two.
    My concern is that, as it is now, the visitors do not know that they can click the pagination-number, so they miss out on the nice slider.

  7. Oooo! I like. Definitely suitable for a magazine or content-heavy slider with 25+ pages and a great improvement to the text input (too many keystrokes/clicks). But I showed it to a colleague and she didn’t get enough of a visual clue to know a slider was available.

    I would suggest including both; the slider as a means of navigating and the arrows as a step by step. OR…with some more listening scripts within Jquery, detect if the user is rapidly clicking the navigation and suggest switching to the slide view.

    • Hi Ren! Those are great suggestions and ideas that are definitely worth exploring. Thank you for the valuable feedback πŸ™‚ Cheers, ML

  8. Great work!

    But how about to fill all the pages with content? I mean that currently each page is a with just a number filled by JS and the markup is 1 span, so content can’t be placed in each page paginated.

  9. Interesting approach.

    The slider allows for a visual marker within the whole of pages. Where am I currently as a user. How many pages have I went through and how much are still to come? I suggest to show the slider from the start and instead of prev-next arrows allow for keyboard arrow functionality. Also inside the slider at it right side, you can show the total of pages.