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

holo-card

v1.1.3

Published

A React component for holographic card effects with tilt, glare, and shine animations

Readme

HoloCard — React Holographic Card Component

A React component that creates stunning holographic card effects with multiple visual styles and interactive spring animations.

✨ Features

  • 🃏 Multiple holographic effect styles (Shiny, Radiant, Glittery, and more)
  • 🖱️ Interactive tilt & glare effects driven by Framer Motion
  • 📱 Mobile-aware (pointer detection, not UA sniffing)
  • 🎨 Composable — wrap any content with HoloCardRoot
  • 🔌 Zero CSS imports required — styles are bundled automatically
  • 🪝 Hook API for fully custom implementations

📦 Installation

npm install holo-card
# or
yarn add holo-card

📎 Peer Dependencies

npm install react react-dom framer-motion

🚀 Usage

Simple — image card out of the box

import { HoloCard } from 'holo-card';

function App() {
  return (
    <HoloCard
      img="path/to/your/image.jpg"
      dataSet="Shiny"
    />
  );
}

Composable — wrap your own layout

Use HoloCardRoot when you want the holographic effect around your own card design. No CSS imports needed — styles are injected automatically when the component loads.

import { HoloCardRoot } from 'holo-card';

function GameCard({ game }) {
  return (
    <HoloCardRoot dataSet="Shiny">
      <GameCardPoster src={game.coverUrl} alt={game.title} />
      <GameCardHUD title={game.title} playtime={game.playTime} />
    </HoloCardRoot>
  );
}

With foil and mask textures

<HoloCardRoot
  dataSet="Shiny"
  foil="/textures/foil.png"
  mask="/textures/mask.png"
>
  <GameCardPoster src={game.coverUrl} alt={game.title} />
  <GameCardHUD title={game.title} />
</HoloCardRoot>

With foil that activates on image load (render prop)

<HoloCardRoot foil="/textures/foil.png" mask="/textures/mask.png" dataSet="Shiny">
  {({ onFoilLoad }) => (
    <img src="/card.jpg" onLoad={onFoilLoad} />
  )}
</HoloCardRoot>

🛠️ Props

HoloCard

| Prop | Type | Default | Description | |---|---|---|---| | img | string | required | Image URL for the card face | | alt | string | "Holographic card" | Alt text for the image | | dataSet | HoloStyle | "Normal" | Visual effect style | | radius | number \| string | — | Border radius — number is treated as px | | foil | string | — | URL for foil overlay texture | | mask | string | — | URL for mask image | | enableEffect | boolean | true | Enable interactive tilt/glare | | onLoad | () => void | — | Called when the card image finishes loading |

HoloCardRoot

All HoloCard props except img, alt, and onLoad, plus:

| Prop | Type | Default | Description | |---|---|---|---| | children | ReactNode \| (ctx) => ReactNode | required | Card content. Accepts a render prop ({ onFoilLoad }) => ReactNode for timing foil activation to an image load | | cardStyle | CSSProperties | — | Extra styles on the inner card_front element — use for seed/cosmos shimmer variables | | className | string | — | Extra class names merged with the card's own classes | | style | CSSProperties | — | Extra styles merged after the spring styles | | onClick | MouseEventHandler | — | Overrides the default toggle-active click handler |

HoloStyle values

"Shiny" "Shiny_raycast" "Normal" "Vibrant" "Radiant" "Glittery" "Disable"


🪝 Hook API

Use useHolographicEffect for fully custom implementations:

import { useHolographicEffect } from 'holo-card';
import { motion } from 'framer-motion';

function CustomCard() {
  const {
    isActive,          // boolean — card is toggled active
    isInteracting,     // boolean — user is hovering
    isMobile,          // boolean — coarse pointer detected
    handleInteract,    // MouseMoveHandler — drives the spring
    handleInteractEnd, // MouseLeaveHandler — snaps back to rest
    retreat,           // () => void — immediately resets all springs
    springStyle,       // Record<string, MotionValue> — spread onto a motion.*
  } = useHolographicEffect();

  return (
    <motion.div style={springStyle} onMouseMove={handleInteract} onMouseLeave={handleInteractEnd}>
      {/* your card */}
    </motion.div>
  );
}

🎥 Demo

uZR1Lg4


📚 Inspiration & Credits

This project was heavily inspired by the amazing work in
@simeydotme/pokemon-cards-css.

🎨 Note: Almost all of the base CSS styles for the holographic effects are derived from that repository.

A huge thanks to @simeydotme for the brilliant visual design!