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

kinetic-slider

v1.1.0

Published

A WebGL-powered kinetic slider component using PIXI.js

Downloads

10

Readme

KineticSlider

KineticSlider by Creative Branding

A high-performance, WebGL-powered slider component using PIXI.js for stunning visual effects and smooth transitions. Features displacement effects, pixi filters, animations, and more - all optimized for modern web applications with React support.

npm version License

Features

  • WebGL-powered rendering with PIXI.js
  • Advanced displacement effects for interactive cursor and transitions
  • Customizable filters for both images and text
  • Touch swipe and mouse drag support
  • Keyboard navigation support
  • Optimized performance with texture atlas support
  • Responsive design
  • TypeScript support

Installation

npm install kinetic-slider
# or
yarn add kinetic-slider

Usage

import React from 'react';
import { KineticSlider } from 'kinetic-slider';
import 'kinetic-slider/dist/styles.css'; // If using the extracted CSS

const MySlider = () => {
    const images = [
        '/images/slide1.jpg',
        '/images/slide2.jpg',
        '/images/slide3.jpg',
    ];

    const texts = [
        ['Title 1', 'Subtitle for slide 1'],
        ['Title 2', 'Subtitle for slide 2'],
        ['Title 3', 'Subtitle for slide 3'],
    ];

    return (
        <KineticSlider
            images={images}
            texts={texts}
            cursorImgEffect={true}
            cursorTextEffect={true}
            cursorScaleIntensity={0.65}
            cursorMomentum={0.14}
        />
    );
};

export default MySlider;

Advanced Configuration

The KineticSlider component accepts many configuration options:

<KineticSlider
    // Content sources
    images={['slide1.jpg', 'slide2.jpg']}
    texts={[['Title 1', 'Subtitle 1'], ['Title 2', 'Subtitle 2']]}
    slidesBasePath="/images/"

    // Displacement settings
    backgroundDisplacementSpriteLocation="/images/background-displace.jpg"
    cursorDisplacementSpriteLocation="/images/cursor-displace.png"
    cursorImgEffect={true}
    cursorTextEffect={true}
    cursorScaleIntensity={0.65}
    cursorMomentum={0.14}

    // Text styling
    textTitleColor="white"
    textTitleSize={64}
    textTitleLetterspacing={2}
    textSubTitleColor="white"
    textSubTitleSize={24}
    textSubTitleLetterspacing={1}

    // Navigation settings
    externalNav={false}
    navElement={{ prev: '.main-nav.prev', next: '.main-nav.next' }}

    // Custom filters
    imageFilters={[
        { type: 'displacement', intensity: 0.1 },
        { type: 'blur', intensity: 0.5 }
    ]}
    textFilters={[
        { type: 'glow', intensity: 0.8 }
    ]}
/>

Using Texture Atlases

For better performance, KineticSlider supports texture atlases:

<KineticSlider
    // Same props as above
    useSlidesAtlas={true}
    slidesAtlas="slides-atlas"
    useEffectsAtlas={true}
    effectsAtlas="effects-atlas"
/>

You can generate texture atlases using the included script:

node src/scripts/generateAtlas.cjs --input=public/images/slides --name=slides-atlas

Automated Releases

This project uses semantic-release for automated versioning and releases. When you push commits to the main branch, GitHub Actions will automatically:

  1. Run tests and linting
  2. Determine the version bump based on conventional commit messages
  3. Update the package.json version
  4. Generate a changelog
  5. Create a GitHub release
  6. Publish to npm

Commit Message Format

We follow the Conventional Commits specification:

  • feat: add new feature - Minor version bump (1.0.0 → 1.1.0)
  • fix: resolve issue - Patch version bump (1.0.0 → 1.0.1)
  • feat!: breaking change - Major version bump (1.0.0 → 2.0.0)

See the COMMIT_CONVENTION.md file for more details.

API Reference

See our documentation for a complete API reference.

License

Apache 2.0 © Creative Branding


Development Status

Test suite is currently under maintenance as we migrate to ESM (ECMAScript Modules) format. Tests are allowed to fail in CI pipelines without blocking builds. Key known issues being addressed:

  • ResourceManager test has type compatibility issues with class methods
  • FilterFactory test has module resolution issues
  • Environment variable handling needs improvement for test environments

These issues will be fixed in upcoming releases.

Development

When installing dependencies for development, use the following command to avoid peer dependency conflicts:

npm run dev:install
# or directly:
npm install --legacy-peer-deps

This is necessary because the library supports multiple React versions (17-19) but development tools may have strict version requirements.