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

@pyreon/kinetic-presets

v0.2.0

Published

120+ animation presets for Pyreon transitions

Readme

@pyreon/kinetic-presets

122 animation presets, 5 configurable factories, and 5 composition utilities for @pyreon/kinetic.

All exports are tree-shakeable. Import only what you use.

Install

bun add @pyreon/kinetic-presets @pyreon/kinetic

Quick Start

import { kinetic } from '@pyreon/kinetic'
import { presets, createFade, compose, withDuration } from '@pyreon/kinetic-presets'

// Use a preset directly
const FadeUp = kinetic('div').preset(presets.fadeUp)

// Use a factory for custom config
const SlowFade = kinetic('div').preset(createFade({ duration: 800, direction: 'up', distance: 24 }))

// Compose presets together
const FadeSlide = kinetic('div').preset(compose(presets.fade, presets.slideUp))

// Override timing
const QuickBounce = kinetic('div').preset(withDuration(presets.bounceIn, 200))

Presets (122 total)

All presets are available as named exports and via the presets map object.

// Named import
import { fadeUp, scaleIn, bounceIn } from '@pyreon/kinetic-presets'

// Map access (useful for dynamic selection)
import { presets } from '@pyreon/kinetic-presets'
presets.fadeUp   // same as named fadeUp

Fades (14)

fade, fadeUp, fadeDown, fadeLeft, fadeRight, fadeUpBig, fadeDownBig, fadeLeftBig, fadeRightBig, fadeScale, fadeUpLeft, fadeUpRight, fadeDownLeft, fadeDownRight

Slides (8)

slideUp, slideDown, slideLeft, slideRight, slideUpBig, slideDownBig, slideLeftBig, slideRightBig

Scales (8)

scaleIn, scaleOut, scaleUp, scaleDown, scaleInUp, scaleInDown, scaleInLeft, scaleInRight

Zooms (10)

zoomIn, zoomOut, zoomInUp, zoomInDown, zoomInLeft, zoomInRight, zoomOutUp, zoomOutDown, zoomOutLeft, zoomOutRight

Flips (6)

flipX, flipY, flipXReverse, flipYReverse, flipDiagonal, flipDiagonalReverse

Rotations (8)

rotateIn, rotateInReverse, rotateInUp, rotateInDown, spinIn, spinInReverse, scaleRotateIn, newspaperIn

Bounce, Spring & Pop (10)

bounceIn, bounceInUp, bounceInDown, bounceInLeft, bounceInRight, springIn, popIn, rubberIn, squishX, squishY

Blur (6)

blurIn, blurInUp, blurInDown, blurInLeft, blurInRight, blurScale

Puff (2)

puffIn, puffOut

Clip Path (8)

clipTop, clipBottom, clipLeft, clipRight, clipCircle, clipCenter, clipDiamond, clipCorner

Perspective (4)

perspectiveUp, perspectiveDown, perspectiveLeft, perspectiveRight

Tilt (4)

tiltInUp, tiltInDown, tiltInLeft, tiltInRight

Swing (4)

swingInTop, swingInBottom, swingInLeft, swingInRight

Slit (2)

slitHorizontal, slitVertical

Swirl (2)

swirlIn, swirlInReverse

Back (4)

backInUp, backInDown, backInLeft, backInRight

Light Speed (2)

lightSpeedInLeft, lightSpeedInRight

Roll (2)

rollInLeft, rollInRight

Fly (4)

flyInUp, flyInDown, flyInLeft, flyInRight

Float (4)

floatUp, floatDown, floatLeft, floatRight

Push (2)

pushInLeft, pushInRight

Expand (2)

expandX, expandY

Skew (4)

skewIn, skewInReverse, skewInY, skewInYReverse

Drop & Rise (2)

drop, rise

Factories

Configurable factories for creating custom presets:

import { createFade, createSlide, createScale, createRotate, createBlur } from '@pyreon/kinetic-presets'

createFade(options?)

createFade()                                    // Pure opacity fade
createFade({ direction: 'up', distance: 24 })   // Fade with movement
createFade({ duration: 500, easing: 'ease-in-out' })

Options: direction? ('up' | 'down' | 'left' | 'right'), distance? (px, default 16), duration? (ms, default 300), leaveDuration? (ms, default 200), easing? (default 'ease-out'), leaveEasing? (default 'ease-in').

createSlide(options?)

createSlide({ direction: 'left', distance: 32 })

Options: direction? (default 'up'), distance? (default 16), duration?, leaveDuration?, easing?, leaveEasing?.

createScale(options?)

createScale({ from: 0.5, duration: 400 })
createScale({ from: 0.8, easing: 'cubic-bezier(0.34, 1.56, 0.64, 1)' })  // spring bounce

Options: from? (default 0.9), duration?, leaveDuration?, easing?, leaveEasing?.

createRotate(options?)

createRotate({ degrees: 30, duration: 400 })
createRotate({ degrees: -90 })  // counter-clockwise

Options: degrees? (default 15), duration?, leaveDuration?, easing?, leaveEasing?.

createBlur(options?)

createBlur({ amount: 12, duration: 400 })
createBlur({ amount: 8, scale: 0.95 })  // blur with scale

Options: amount? (px, default 8), scale? (optional scale factor), duration?, leaveDuration?, easing?, leaveEasing?.

Composition Utilities

compose(...presets)

Merge multiple presets. Styles are merged, transitions are comma-joined.

import { compose, presets } from '@pyreon/kinetic-presets'

const fadeSlideUp = compose(presets.fade, presets.slideUp)

withDuration(preset, enterMs, leaveMs?)

Override timing.

const slow = withDuration(presets.fade, 800, 500)

withEasing(preset, easing)

Override easing function.

const springy = withEasing(presets.scaleIn, 'cubic-bezier(0.34, 1.56, 0.64, 1)')

withDelay(preset, enterDelayMs, leaveDelayMs?)

Add delay to transitions.

const delayed = withDelay(presets.fadeUp, 200, 0)

reverse(preset)

Swap enter and leave animations.

const slideDownOnEnter = reverse(presets.slideUp)
// Enter: slides down (was leave). Leave: slides up (was enter).

Custom Presets

A preset is just an object matching the Preset type. Create your own:

import type { Preset } from '@pyreon/kinetic-presets'

const myPreset: Preset = {
  enterStyle: { opacity: 0, transform: 'translateY(20px) scale(0.95)' },
  enterToStyle: { opacity: 1, transform: 'translateY(0) scale(1)' },
  enterTransition: 'all 400ms cubic-bezier(0.34, 1.56, 0.64, 1)',
  leaveStyle: { opacity: 1, transform: 'translateY(0) scale(1)' },
  leaveToStyle: { opacity: 0, transform: 'translateY(-10px) scale(0.98)' },
  leaveTransition: 'all 250ms ease-in',
}

Presets also support class-based properties for Tailwind/CSS modules:

const twPreset: Preset = {
  enter: 'transition-all duration-300 ease-out',
  enterFrom: 'opacity-0 translate-y-4',
  enterTo: 'opacity-100 translate-y-0',
  leave: 'transition-all duration-200 ease-in',
  leaveFrom: 'opacity-100 translate-y-0',
  leaveTo: 'opacity-0 -translate-y-2',
}

No Peer Dependencies

This package is framework-agnostic — it only exports plain objects and functions.

License

MIT