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

tailwindcss-motion-path

v1.0.5

Published

A Tailwind CSS plugin for the offset-path property

Readme

Tailwind CSS Motion Path Plugin

NPM Version NPM Downloads License Tailwind CSS

A powerful, lightweight Tailwind CSS v4 plugin that brings full support for the CSS Motion Path module (offset-path) along with built-in animation utilities.

🚀 Installation & Setup

Install the plugin via npm:

npm install tailwindcss-motion-path

Add the plugin directly to your CSS file using the @plugin directive:

@import "tailwindcss";
@plugin "tailwindcss-motion-path";

🛠️ Usage

Motion Path Classes

Easily define paths and how elements position themselves along them:

  • offset-path: e.g., offset-path-none, offset-path-[circle()], offset-path-[path('M0,0_L100,100')]
  • offset-distance: 0, 25, 50, 75, 100, or arbitrary [37%]
  • offset-rotate: auto, reverse, 0, 45, 90, or arbitrary [135deg]
  • offset-anchor: center, top, left, right, or arbitrary [20px_40px]
  • offset-position: auto, center, or arbitrary [10px_20px]

⚠️ Note: Currently, offset-position and CSS animations (like animate-motion) do not work well together. Using both on the same element may result in the offset-position being ignored.

Animation Helpers

Use pre-built animation classes to smoothly animate the offset-distance from 0% to 100%:

  • Standard: animate-motion, animate-motion-reverse, animate-motion-alternate, animate-motion-loop
  • Speed: animate-motion-fast (2s), animate-motion-slow (8s)
  • Easing: animate-motion-linear, animate-motion-ease, animate-motion-bounce, animate-motion-ping
  • Shapes: animate-motion-orbit, animate-motion-circle, animate-motion-figure8

Control Utilities

Want fine-grained control? We provide custom utilities so you don't have to write custom CSS:

  • Duration (motion-duration-*): 1, 2, 4, 8, or arbitrary [10s]
  • Delay (motion-delay-*): 100, 300, 500, or arbitrary [2s]
  • Repeat (motion-repeat-*): 1, 2, infinite, or arbitrary [5]

Example:

<div class="offset-path-[circle()] animate-motion-bounce motion-duration-2 motion-delay-100"></div>
<div class="offset-path-[path('M_0,0_L_100,100')] animate-motion-fast motion-repeat-infinite"></div>

🎨 Demo

Check out the live demo here!