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

@blaze-motion/motion

v1.4.0

Published

Preset de animaciones para motion/react

Downloads

684

Readme

@blaze-motion/motion

npm version npm downloads license

Presets de animaciones fluidas para motion/react.

Instalación

# npm
npm install @blaze-motion/motion

# pnpm
pnpm add @blaze-motion/motion

# yarn
yarn add @blaze-motion/motion

# bun
bun add @blaze-motion/motion

Requisitos

  • React 18+ o 19
  • motion/react 12+

Uso Rápido

import { motion } from "motion/react";
import { fade } from "@blaze-motion/motion";

export function MyComponent() {
  return (
    <motion.div
      variants={fade({ direction: "up" })}
      initial="initial"
      animate="animate"
    >
      Hola Mundo
    </motion.div>
  );
}

API

fade(opciones?)

Crea una animación de fade con movimiento direccional opcional.

import { fade } from "@blaze-motion/motion";

const variants = fade({
  direction: "up", // "up" | "down" | "left" | "right" | "none" (por defecto: "up")
  distance: 40, // desplazamiento en píxeles para la dirección (por defecto: 40)
  duration: 0.5, // duración de la animación en segundos (por defecto: 0.5)
  delay: 0, // retraso antes de que inicie la animación (por defecto: 0)
  ease: "easeOut", // función de easing (por defecto: bezier personalizado [0.16, 1, 0.3, 1])
  excludeDelay: false, // excluir delay para compatibilidad con stagger (por defecto: false)
  disableTransition: false, // quitar transición para control manual (por defecto: false)
});

Con Física Spring

const variants = fade({
  direction: "up",
  spring: {
    stiffness: 100,
    damping: 20,
  },
});

parentVariants(opciones?)

Crea variantes para un contenedor padre que coordina animaciones de elementos hijos en secuencia (stagger).

import { parentVariants, fade } from "@blaze-motion/motion";
import { motion } from "motion/react";

return (
  <motion.div
    variants={parentVariants({ delayChildren: 0.3 })}
    initial="initial"
    animate="animate"
  >
    {[1, 2, 3].map((i) => (
      <motion.div key={i} variants={fade({ excludeDelay: true })}>
        Item {i}
      </motion.div>
    ))}
  </motion.div>
);

<TextAnimate />

Componente listo para usar que anima texto dinámicamente palabra por palabra o carácter por carácter, con opciones para resaltar texto específico.

import { TextAnimate } from "@blaze-motion/motion";

export function Title() {
  return (
    <TextAnimate
      text="Animaciones fluidas"
      as="h1"
      type="slideUp"
      by="word"
      duration={0.4}
      startDelay={0.2}
      highlight={["fluidas"]}
      highlightClassName="text-pink-500 font-bold"
    />
  );
}

Propiedades de <TextAnimate />

| Prop | Tipo | Por defecto | Descripción | | -------------------- | --------------------------------------------------------------------- | ------------- | ------------------------------------------------------------- | | text | string | requerido | Texto a animar | | as | keyof JSX.IntrinsicElements | "p" | Elemento HTML contenedor | | type | "blurIn" \| "slideUp" \| "slideDown" \| "slideLeft" \| "slideRight" \| "typeWriter" | "slideUp" | Estilo visual de la animación | | by | "word" \| "letter" | "word" | Divide la animación por palabra o por letra | | duration | number | 0.4 | Duración individual de cada elemento animado | | startDelay | number | 0 | Retraso antes de que comience el efecto completo | | highlight | string[] | [] | Lista de palabras a resaltar visualmente | | highlightClassName | string | "" | Clases aplicadas a las palabras que coincidan con highlight |

<Marquee />

Componente para crear un carrusel de desplazamiento infinito y fluido, ideal para mostrar tecnologías, clientes o testimonios.

import { Marquee } from "@blaze-motion/motion";

export function TechStack() {
  return (
    <Marquee direction="left" speed={20} pauseOnHover={true} gap="2rem">
      <div className="w-16 h-16 bg-blue-500 rounded-xl" />
      <div className="w-16 h-16 bg-red-500 rounded-xl" />
      <div className="w-16 h-16 bg-green-500 rounded-xl" />
    </Marquee>
  );
}

Propiedades de <Marquee />

| Prop | Tipo | Por defecto | Descripción | | -------------- | ---------------------- | ----------- | -------------------------------------------------------- | | children | ReactNode | req | Elementos a renderizar dentro del carrusel | | direction | "left" \| "right" | "left" | Dirección del desplazamiento | | speed | number | 20 | Tiempo en segundos que tarda en dar una vuelta (menor=más rápido) | | pauseOnHover | boolean | true | Pausar la animación cuando el mouse está encima | | gap | string | "2rem" | Espaciado entre elementos | | className | string | "" | Clases CSS adicionales (ej. para padding vertical) |

Opciones de fade()

| Opción | Tipo | Por defecto | Descripción | | ------------------- | ----------------------------------------------- | ------------------- | --------------------------------------------- | | direction | "up" \| "down" \| "left" \| "right" \| "none" | "up" | Dirección de la animación de fade | | distance | number | 40 | Desplazamiento en píxeles para la dirección | | duration | number | 0.5 | Duración de la animación en segundos | | delay | number | 0 | Retraso antes de que inicie la animación | | ease | Easing | [0.16, 1, 0.3, 1] | Función de easing | | spring | SpringOptions | undefined | Configuración de física spring | | excludeDelay | boolean | false | Excluir delay para compatibilidad con stagger | | disableTransition | boolean | false | Desactivar transición automática |

Licencia

MIT © blaze-motion