motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Pagination
  5. Sliding Pagination
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Pagination

Sliding Pagination

Pagination whose active pill slides between page numbers with a spring bounce.

npx motionsnack add sliding-pagination

Customize

<SlidingPagination />

Props

14 properties

PropertyTypeDefaultDescription
valuenumber-Controlled current page, 1-based.
onChange(page: number) => void-Called with the new page whenever the user picks one.
getHref(page: number) => string-Link mode: every page renders as a link to this address. Without it the pages are buttons.
linkComponentElementType'a'Renders the links in link mode, e.g. the app's router link.
resultsIdstring-Id of the results heading or container (tabIndex={-1}) that gets focus after a page change.
labels{ previous?, next?, page?, pageOf? }EnglishUI strings; {page} and {total} are replaced.
classNamestring''Extra classes on the nav element.
totalnumber10Number of pages.
defaultValuenumber1Page selected on first render when uncontrolled.
siblingsnumber1Page numbers shown on each side of the current page.
boundariesnumber1Page numbers always shown at the start and at the end.
showArrowsbooleantruePrevious and next buttons at the ends.
size'sm' | 'md''md'Button size: 36 in a table footer or toolbar, 44 standalone.
labelstring'Pagination'Accessible name of the navigation landmark.

About Sliding Pagination

Page numbers with previous and next buttons, where the filled pill behind the current page is one shared element. Picking another page makes the pill slide across the row and settle with a spring bounce, while the numbers change colour underneath it. Long ranges collapse into ellipses, and the row keeps the same number of slots on every page so it never changes width. It works controlled through page and onPageChange or uncontrolled through defaultPage. Size, gap, radius, bounce and duration are all props. With reduced motion the pill jumps straight to the new page.

What's included

  • Shared layout pill with a spring bounce
  • Ellipsis for long ranges, constant row width
  • Previous and next buttons with disabled ends
  • Controlled and uncontrolled page state
  • Siblings and boundaries settings
  • aria-current and labelled page buttons
  • Light and dark, reduced motion respected
Type
Animated React pagination component
Library
Components · Pagination
Stack
Next.js, React, Tailwind CSS
Added
2026-09-20
Install
npx motionsnack add sliding-pagination