npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ab-slide-ease

v1.3.1

Published

A seamless and easy to use React slider library for smooth, flexible web interfaces.

Readme

🚀 Ab Slide Ease (ab-slide-ease)

npm version license bundle size

Ab Slide Ease is a modern, high-performance, and feature-rich React slider library built for smooth transitions, flexible layouts, and elegant user interfaces. Works seamlessly in pure React apps, Next.js (SSR), and mobile browsers.


✨ Highlights & Features

  • 🎨 Modern Glassmorphism UI: Backdrop blur controls, animated indicator dots, and sleek SVG arrows.
  • GPU Hardware Accelerated: Ultra-smooth slide (translateX) & fade transition effects.
  • 📱 Mobile Touch Swipe Gestures: Native swipe left/right support for touch devices.
  • ⏸️ Pause on Hover: Automatically pauses slider autoplay when mouse hovers over it.
  • ⌨️ Keyboard Accessibility: Navigate slides using ArrowLeft and ArrowRight keys.
  • 📐 Fully Responsive: Adapts seamlessly to parent containers, custom heights, or full viewports.
  • 🏷️ Rich Slide Captions & Custom Cards: Support for image URLs, titles, descriptions, action buttons, or custom React children.
  • 🔷 TypeScript Included: Full TypeScript autocompletion and type declarations (index.d.ts).
  • SSR Safe: Next.js & Gatsby compatible out of the box.

📦 Installation

npm install ab-slide-ease
# or
yarn add ab-slide-ease
# or
pnpm add ab-slide-ease

🚀 Quick Start

1. Declarative React Component (Recommended)

import React from 'react';
import AutoSlider from 'ab-slide-ease';

const sampleImages = [
  'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1200',
  'https://images.unsplash.com/photo-1511884642898-4c92249e20b6?w=1200',
  'https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1200',
];

const App = () => {
  return (
    <div style={{ maxWidth: '900px', margin: '40px auto' }}>
      <AutoSlider 
        images={sampleImages} 
        duration={3000} 
        height="450px" 
        effect="slide"
        showDots={true}
        showArrows={true}
      />
    </div>
  );
};

export default App;

2. Advanced Usage with Titles & Links

Pass an array of objects to display slide captions and call-to-action buttons:

import React from 'react';
import { AutoSlider } from 'ab-slide-ease';

const slidesData = [
  {
    url: 'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1200',
    title: 'Majestic Mountains',
    description: 'Explore breathtaking landscape photography and nature views.',
    link: 'https://unsplash.com',
  },
  {
    url: 'https://images.unsplash.com/photo-1511884642898-4c92249e20b6?w=1200',
    title: 'Serene Pine Forest',
    description: 'Discover peaceful green woodlands and misty mountain ranges.',
  },
];

const App = () => (
  <AutoSlider 
    images={slidesData} 
    duration={4000}
    showCounter={true}
    showProgressBar={true}
    pauseOnHover={true}
  />
);

export default App;

3. Imperative Modal Trigger (showSlider)

If you want to trigger a fullscreen modal popup slider programmatically via button click:

import React from 'react';
import { showSlider } from 'ab-slide-ease';

const images = [
  'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1200',
  'https://images.unsplash.com/photo-1511884642898-4c92249e20b6?w=1200',
];

const App = () => {
  return (
    <button onClick={() => showSlider(images, 3000)}>
      Open Fullscreen Slider
    </button>
  );
};

export default App;

🎛️ Component Props (AutoSliderProps)

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | images | Array<string \| SlideItem> | [] | Array of image URLs or slide objects ({ url, alt, title, description, link }) | | duration | number | 3000 | Autoplay interval duration in milliseconds | | autoPlay | boolean | true | Enable or disable automatic slide transitions | | pauseOnHover | boolean | true | Pause autoplay when user hovers over slider | | effect | 'slide' \| 'fade' | 'slide' | Transition effect style (slide or fade) | | showDots | boolean | true | Show interactive navigation dots indicator | | showArrows | boolean | true | Show previous and next arrow buttons | | showCounter | boolean | false | Show slide counter badge (e.g. 1 / 5) | | showProgressBar | boolean | false | Show top progress bar indicator for interval timer | | height | string | '450px' | Custom CSS height (e.g. '400px', '60vh', '100%') | | className | string | '' | Extra CSS class for slider wrapper | | style | object | {} | Inline CSS styles for wrapper | | onSlideChange | (index: number) => void | undefined | Callback fired on slide change |


🎨 Customizing Styles

You can easily override CSS design tokens in your global CSS:

:root {
  --ase-accent-color: #ec4899; /* Change active dot & progress bar color */
  --ase-radius: 20px;          /* Change corner rounding */
  --ase-bg-glass: rgba(0, 0, 0, 0.6); /* Change glass control background */
}

📄 License

Licensed under the Apache-2.0 License. Developed with ❤️ by Abhijeet Kokat.