Skip to content

v1.1.1 • Motion • 1kb gzipped • MIT

TiltCard

Pointer-reactive tilt and glare in a kilobyte, with a reduced-motion path that simply stops.

★ 5.3kGitHub
↓ 6.1k / week● MIT● TS 5.0+
tiltcard-preview.png
Abstract preview graphic for TiltCard

// why tiltcard

One kilobyte of polish

A single transform driven by pointer position, updated on the compositor, with nothing else running.

● 60fps● 6ms frame cost● 0 deps

// stack

Quiet by default

Honours reduced motion by disabling entirely rather than substituting a lesser animation.

TiltCard started as a single file in a client project and stayed small on purpose. It does one job, it does it in 1kb gzipped, and it has no runtime dependencies.

Getting started

Install it, import it, call it:

npm i tiltcard-js

A single transform driven by pointer position, updated on the compositor, with nothing else running.

What it does not do

It does not manage your state, style your components or ship a plugin system. Those are your decisions, and keeping them out is what keeps the bundle honest.

  • Compositor-only transforms
  • Optional glare layer
  • MIT licensed, commercially friendly

Features

Compositor-only transforms

No layout, no paint, no scroll listeners.

Optional glare layer

A single gradient element that tracks the pointer, or nothing at all.

Fully controllable

Play, pause, reverse and seek, all from a plain object.

Respects reduced motion

Reads the user preference and falls back to an instant state change.

ESM and types

Ships module and CommonJS builds with hand-written type definitions and source maps.

Sixty frames, measured

Performance is asserted in CI against a recorded trace, not assumed.

Get TiltCard v1.1.1

7 files • .min.js 1kb • .zip 93kb • sha384 verified

Changelog

v1.1.1 Sep 12 2025 • latest
  • Glare layer made optional
  • Reduced-motion disables completely
  • Touch input no longer tilts
v1.1 Jul 20 2025
  • Reworked the public API for consistency
  • Deprecated helpers removed
v1.0.4 Jun 12 2025
  • Fixed a memory leak on repeated teardown
  • Source maps now published with every build
View full archive →

// related

Related products

Sep 10 • v2.0

ChartForge

Canvas charts in twelve lines. Responsive, accessible and dark-mode ready, with no D3 learning curve.

View →
Aug 30 • v3.2.1

MotionEase

Physics-based micro-animations with a single call. Spring curves that feel right without a tuning session.

View →
Aug 19 • v1.9.4

FormFlow

Validation and multi-step logic that works the same in React, Vue and vanilla. Your markup stays yours.

View →

Make it move today.

MIT licensed. Commercial friendly. Five-minute setup.