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 🙏

© 2024 – Pkg Stats / Ryan Hefner

reacr-stacked

v1.1.1

Published

react-stacked-cards is a lightweight and customizable React component designed to showcase multiple cards in a stacked layout with a smooth scrolling experience. As users scroll, the cards rotate and animate dynamically, creating a visually appealing effe

Downloads

63

Readme

react-stacked

react-stacked is a lightweight and customizable React component that displays multiple cards in a visually engaging stacked layout. As users scroll, the cards rotate and animate, providing a smooth and dynamic user experience. Perfect for showcasing feature highlights, services, or important content with a unique scrolling effect.

Features

  • Dynamic Scrolling: Cards rotate and animate as users scroll.
  • Customizable: Change content, background colors, and layout easily.
  • Lightweight: Minimal dependencies and highly optimized for performance.
  • Responsive: Works well on both desktop and mobile views.
  • Easy Integration: Plug-and-play design for quick integration into any React project.

Installation

You can install the package via npm:

npm install react-stacked

Usage

Here's how you can integrate react-stacked into your React project:

import React from 'react';
import StackedCards from 'react-stacked';

const App = () => {
  return (
    <div>
      <StackedCards />
    </div>
  );
};

export default App;

Example Configuration

The StackedCards component takes a predefined set of card data with a background, title, and description for each card. Here is an example of the configuration:

import React from 'react';
import StackedCards from 'react-stacked';

const cardData = [
  {
    sub: "Simplified",
    content: "Complex tasks are now simple",
    background: "rgb(64, 122, 255)",
  },
  {
    sub: "Boost Productivity",
    content: "Perform tasks in less time",
    background: "rgb(221, 62, 88)",
  },
  {
    sub: "Facilitated Learning",
    content: "Train anyone from anywhere",
    background: "rgb(186, 113, 245)",
  },
  {
    sub: "Support",
    content: "Now it's 24/7 support",
    background: "rgb(247, 92, 208)",
  },
];

const App = () => {
  return (
    <div>
      <StackedCards cardData={cardData} />
    </div>
  );
};

export default App;

Props

  • cardData: An array of objects representing each card. Each object should have the following fields:
    • sub: The subtitle or heading of the card.
    • content: The main content or description of the card.
    • background: The background color of the card (in RGB or HEX format).

Example Prop

const cardData = [
  {
    sub: "Feature 1",
    content: "This is feature 1 description",
    background: "#407AFF"
  },
  {
    sub: "Feature 2",
    content: "This is feature 2 description",
    background: "#DD3E58"
  }
];

Custom Styling

You can modify the styles of the stacked cards by applying custom CSS to the component, or overriding the default styles via inline style attributes.

Contributing

Contributions and issues are welcome. If you have suggestions or find bugs, feel free to open an issue or a pull request.

License

This project is licensed under the ISC License.