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

@manufosela/card-rain-section

v1.1.0

Published

Scroll-driven card rain animation section with drop and zoom modes

Readme

@manufosela/card-rain-section

npm version License: MIT

Scroll-driven card rain animation section web component built with Lit 3.

Cards fall (or zoom) into view as the user scrolls through the page. Supports two animation modes, mobile-friendly trigger animations, and respects prefers-reduced-motion for accessibility.

Installation

npm install @manufosela/card-rain-section

Usage

import '@manufosela/card-rain-section';
<card-rain-section scroll-height="300">
  <span slot="title">Our<br>Services</span>

  <div slot="card">
    <h3>Design</h3>
    <p>Beautiful interfaces that delight users.</p>
  </div>

  <div slot="card">
    <h3>Development</h3>
    <p>Modern web applications built for scale.</p>
  </div>

  <div slot="card">
    <h3>Strategy</h3>
    <p>Data-driven decisions for measurable results.</p>
  </div>

  <button slot="actions">Learn More</button>
</card-rain-section>

Attributes

| Attribute | Type | Default | Description | |-----------|------|---------|-------------| | scroll-height | Number | 300 | Height of the scroll area in viewport units | | fall-mode | String | 'drop' | Animation mode: "drop" or "zoom" | | mobile-breakpoint | Number | 768 | Viewport width threshold for mobile layout (px) |

Slots

| Slot | Description | |------|-------------| | title | Title content displayed behind the cards (parsed as innerHTML) | | card | Card elements that animate into view (multiple allowed) | | actions | Action buttons displayed at the bottom of the section |

CSS Custom Properties

| Property | Default | Description | |----------|---------|-------------| | --crs-bg | #1a1618 | Background color of the canvas area | | --crs-card-bg | var(--accent-gold, #bfa15f) | Card background color | | --crs-card-radius | 16px | Card border radius | | --crs-card-width | 440px | Card width | | --crs-card-padding | 48px | Card inner padding | | --crs-title-size | 10rem | Title font size | | --crs-title-color | rgba(255, 255, 255, 1) | Title text color |

Animation Modes

Drop (default)

Cards fall from above the viewport and settle into place with slight rotations and offsets. Each card scales up slightly as it lands.

<card-rain-section fall-mode="drop">
  ...
</card-rain-section>

Zoom

Cards scale down from a large size with a blur-to-sharp transition effect, creating a dramatic zoom-in appearance.

<card-rain-section fall-mode="zoom">
  ...
</card-rain-section>

Custom Styles

<card-rain-section style="
  --crs-bg: #0a192f;
  --crs-card-bg: #112240;
  --crs-card-radius: 4px;
  --crs-title-color: rgba(100, 255, 218, 0.8);
  --crs-title-size: 8rem;
">
  ...
</card-rain-section>

Accessibility

  • The component respects prefers-reduced-motion: reduce by disabling all animations and displaying cards in a static vertical layout.
  • On mobile viewports, cards use a simpler trigger-based animation when they scroll into view.
  • The scroller region has role="region" with an aria-label for assistive technologies.

License

MIT