react-delaunay-hero
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

React Delaunay Hero

Sample React Delaunay Hero

Build Status

Purpose

A react component to display an Hero with a Delaunay triangulation in background.

Installation

 
npm install react-delaunay-hero --save
# or 
yarn add react-delaunay-hero
 

Usage

Basics

import Hero from 'react-delaunay-hero';
 
....
 
<DelaunayHero
  color="#ffa500"
  maxPoints={50}
  maxSpeed={0.6}
  minSpeed={0.5}
  animate
>
    <h1>My Hero</h1>
    <p>Hello World!</p>
</DelaunayHero>
 

Documentation

You can find multiple samples on the dedicated github page.

Thanks

Setting up the project has been largely inspired by this wonderful codepen project.

/react-delaunay-hero/

    Package Sidebar

    Install

    npm i react-delaunay-hero

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    330 kB

    Total Files

    20

    Last publish

    Collaborators

    • svengau