DEV Community

Cover image for Pure Swipe Slider: Lightweight Carousel Web Component
jQueryScript
jQueryScript

Posted on

Pure Swipe Slider: Lightweight Carousel Web Component

Pure Swipe Slider: a Web Component that creates mobile carousels in under 4KB.

Key features:

• Zero dependencies

• GPU-accelerated transforms for 60fps on mobile

• Unified touch/mouse/pen input via Pointer Events

• Works in React, Vue, Angular, or vanilla JS

• Full API access through custom element methods

The component exposes next(), prev(), and slide() methods directly on the DOM element. Custom Events handle state changes.

Check it out if you need a lightweight slider that doesn't lock you into a framework.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)