Pagination is one of those little design necessities that often gets overlooked. But for blogs and other content-heavy sites, it provides an important means of navigation. A well-crafted menu can encourage users to further explore what you have to offer.
Believe it or not, there are designers who dare to take pagination to that next level. Here’s a look at some very creative code snippets that you can use to improve your own website.
Simple and Intuitive Hover Effects
Our first example shows how some basic hover effects can vastly improve standard pagination. The ultra-smooth underline that follows your cursor makes for a much more intuitive experience. Plus, the entire menu is very easy to read. This is a simple way to help users.
One of the most frustrating parts of pagination can be how menus handle a large number of pages. This snippet uses jQuery to automatically adjust to show adjacent page numbers as you click. It’s a much easier path to going deeper within a site.
The Kitchen Sink
Here’s a very interesting concept. Designed to be both responsive and more accessible, this pagination UI contains multiple ways to navigate – including via keyboard. The timeline-like bar at the top clearly labels the current page and offers a great overview of everything available.
Let the Yeti Take Care of It
They say good help is hard to find. But this snippet provides the help of a Yeti (at least, the hand of a Yeti) when clicking through page numbers. While Yetis may not fit with your motif, this is an example of how we can add the element of fun (and surprise).
Enhanced for Mobile Screens
On smaller screens, pagination can be terribly difficult to use. Navigation items are often too small and too hard to read. This snippet provides a great alternative for mobile devices. Each item is larger, as navigation stretches vertically. The result is that mobile users can get around without having to squint their eyes or zoom in.
No Numbers Needed
Sometimes, we don’t need to number each item within pagination. This example is attractively minimal with the use of dots, rather than numerals. It’s a good solution for slideshows or navigating multiple panels of content.
Mobile UI works best when it reacts to a user’s touch. Here we have pagination that allows the user to swipe to get to the next or previous item. This little convenience can make all the difference when it comes to usability.
Pagination / Infinite Scroll Combo
Designers often use infinite scrolling to replace pagination. But this is a neat concept of how they can be combined. The frustration of infinite scroll is that it can be difficult to go back and find that one particular item in a long list. This script adds new page numbers to the navigation as you continue to scroll down, making going back a little easier.
Moving Pagination Forward
A great web design doesn’t ignore the various elements that make up a page. The pros above show that pagination has more to offer when you put some effort into enhancing it. So, take some inspiration from these examples and create pagination menus that both look and function better.
- Add Scroll Effects & Utilities to Your Website with These CSS & JS Snippets
- Send Holiday Cheer with these Christmas Code Snippets
- The Silly Side of Code Snippets
- Keeping Time: A Collection of Clock and Timer Code Snippets
- 8 Code Snippets That Pay Homage to Apple Devices
- Get into the Halloween Spirit with These Spooky Snippets