Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsSep 11, 2026·2 min de lecture

Keen Slider — High-Performance Touch Slider and Carousel

A framework-agnostic touch slider with native-like kinetic scrolling, supporting React, Vue, Angular, and vanilla JavaScript.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Keen Slider Overview
Commande d'installation directe
npx -y tokrepo@latest install 9f3b8de4-ada5-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Keen Slider is a lightweight, framework-agnostic touch slider that delivers a native-like swipe experience. It uses no dependencies, handles gestures natively, and provides smooth momentum-based scrolling on both mobile and desktop.

What Keen Slider Does

  • Renders responsive carousels and sliders with touch and mouse support
  • Provides native-feeling kinetic scrolling with configurable friction
  • Supports multiple slides per view, variable widths, and vertical sliding
  • Offers framework bindings for React, Vue, Angular, Svelte, and vanilla JS
  • Handles responsive breakpoints with per-breakpoint configuration

Architecture Overview

Keen Slider calculates slide positions and handles gesture tracking in pure JavaScript without DOM manipulation libraries. It uses requestAnimationFrame for smooth animation and pointer events for cross-device input. The core is framework-agnostic, with thin adapter hooks for React, Vue, and other frameworks.

Self-Hosting & Configuration

  • Install via npm and import the framework-specific hook or the core class
  • Configure slides per view, spacing, loop mode, and animation duration
  • Add plugins for autoplay, navigation arrows, and pagination dots
  • Set responsive breakpoints with different configurations per screen size
  • The CSS file is optional—Keen Slider works with your own layout styles

Key Features

  • Native-feeling touch interaction with momentum and snap points
  • Zero dependencies and tiny bundle size under 5KB gzipped
  • Plugin architecture for autoplay, thumbnails, and custom navigation
  • Accessibility support with keyboard navigation and ARIA attributes
  • SSR-compatible with server-side rendering frameworks

Comparison with Similar Tools

  • Swiper — full-featured slider with more built-in modules; Keen Slider is lighter with a plugin system
  • Embla Carousel — similar lightweight approach; Keen Slider offers simpler API with built-in framework hooks
  • Splide — accessible slider with extensions; Keen Slider focuses on native touch feel
  • Glide.js — lightweight slider; Keen Slider provides better momentum scrolling and modern hooks

FAQ

Q: Does Keen Slider support infinite looping? A: Yes. Set the loop option to true for seamless infinite scrolling.

Q: Can I use variable-width slides? A: Yes. Keen Slider supports custom slide widths and auto-sizing.

Q: Is it accessible? A: Yes. It supports keyboard navigation and ARIA roles for screen readers.

Q: Does it work without a framework? A: Yes. The core class works with vanilla JavaScript and any HTML structure.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires