Skip to content

AshBuk/framer-motion-spark-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark Slider

Responsive carousel slider built with Next.js and Framer Motion

CI Publish Code Quality License: MIT

TypeScript React Framer Motion Node

npm GitHub Packages

Demo

✦ Screencast

spark-slider-linkedin.mp4

spark-slider.vercel.app

Lightweight and fast React slider carousel powered by Framer Motion animations. Designed as a modern, custom, and highly optimized solution for large image datasets, it works seamlessly on laptops, tablets, and phones, with smooth support for both touch and mouse/keyboard input.

✦ For businesses and users

A robust slider suitable for galleries, installations, projections, events, or products that need precise, smooth interactions and an accessible UI.

Features

  • Smooth drag-to-swipe with momentum-free, precise control
  • Click on the center card to enter fullscreen (single tap on touch)
  • Auto-play with pause on interaction
  • Responsive layout using viewport units (svh/svmin)
  • Simple image uploads UI (Browse/Manage)

✦ Vercel demo

  • Public demo: spark-slider.vercel.app You are viewing a hosted demo on Vercel. Images are randomized daily via picsum.photos (sourced from the Unsplash photographers collection). Uploading and managing your own images is disabled here. I am considering expanding the online service with private-cloud storage so users can manage their own images. // Private preview (if provided): uploads and deletes are enabled (images up to 5 MB; common image formats).

For developers

  • Packaged as an npm React library for easy reuse in apps (see packages/spark-slider/README.md).

Install as a library

npm i @ashbuk/spark-slider framer-motion react react-dom
  • Stars are appreciated; contributions are welcome! Start onboarding by reading:
  • DEVELOPMENT.md
  • CONTRIBUTING.md
  • Comments in the codebase are concise and serve as additional documentation.
  • The project adheres to SOLID and DRY principles.
  • The slider uses modern technologies with minimal dependencies (Next.js 15 App Router, React, Framer Motion, Tailwind CSS, CSS viewport units svh/svmin).
  • Performance: renders only visible cards, non-visible slides are not mounted, non-center images use loading="lazy". Scales to large image lists while keeping the DOM small.

✦ Links and contact

✦ License

MIT — see LICENSE.

✦ Sponsor

Sponsor PayPal

About

Responsive carousel slider built with Next.js and Framer Motion

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages