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 🙏

© 2025 – Pkg Stats / Ryan Hefner

holo-card

v1.0.7

Published

A React component for holographic card effects

Readme

HoloCard - React Component for Holographic Card Effects

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

✨ Features

  • ✨ Multiple holographic effect styles
  • 🎮 Interactive hover/tilt effects
  • 📱 Mobile-responsive
  • 🎨 Customizable appearance
  • ⚡ Powered by React Spring for smooth animations

📦 Installation

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

📎 Peer Dependencies

Make sure you have these installed in your project:

npm install react react-dom @react-spring/web

🚀 Usage

Basic Usage

import { HoloCard } from 'holo-card';
import 'holo-card/dist/styles/Card.css'; // Base styles required

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

🛠️ All Props

| Prop | Type | Default | Description | | -------------- | ------------------ | ---------- | -------------------------------------------------------------------------------------------------------------- | | img | string | required | Image URL for the card | | radius | number \| string | - | Border radius (px or valid CSS value) | | foil | string | - | URL for foil texture image | | mask | string | - | URL for mask image | | enableEffect | boolean | true | Enable interactive effects | | data_set | string | "Normal" | Visual style: "Shiny", "Shiny_raycast", "Normal", "Vibrant", "Radiant", "Glittery", or "Disable" |

🎨 Available Styles

Import the base style and any additional style you want to use:

import 'holo-card/dist/styles/Card.css'; // Required
import 'holo-card/dist/styles/Card_Shiny.css';
import 'holo-card/dist/styles/Card_Radiant.css';
// etc.

💡 Advanced Usage with Custom Effects

import { HoloCard, useHolographicEffect } from 'holo-card';

function CustomCard() {
  const { springStyle, handleInteract } = useHolographicEffect();

  return (
    <div
      style={springStyle}
      onMouseMove={handleInteract}
    >
      {/* Your custom card implementation */}
    </div>
  );
}

🧪 Examples

//Default
<HoloCard img="pokemon.jpg" data_set="Shiny" />

//Custom Radius
<HoloCard img="pokemon.jpg" radius={20} />
<HoloCard img="pokemon.jpg" radius={"5% / 10%"} />

//With Foil and mask
<HoloCard
  img="pokemon.jpg"
  foil="foil-texture.png"
  mask="custom-mask.png"
/>

🎥 Demo

HoloCard Demo

🪝 Hook API

Use useHolographicEffect for custom implementations:

const {
  isMobile,          // boolean - if user is on mobile
  isActive,          // boolean - if card is active
  isInteracting,     // boolean - if user is interacting
  isLoading,         // boolean - if image is loading
  setIsActive,       // function - set active state
  setIsLoading,      // function - set loading state
  handleInteract,    // function - mouse move handler
  handleInteractEnd, // function - mouse leave handler
  retreat,           // function - reset animations
  springStyle        // object - react-spring styles
} = useHolographicEffect(showcase?: boolean);
// etc.

📚 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!