2.0.0 • Published 5 years ago

react-metaballs-js v2.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

react-metaballs-js

React component for metaballs-js

NPM License BundlePhobia Last Commit

Install

npm install --save react-metaballs-js

Usage

import React, { Component } from "react";
import Metaballs from "react-metaballs-js";

class Example extends Component {
  render() {
    return (
      <Metaballs
        numMetaballs={100}
        minRadius={3}
        maxRadius={7.5}
        speed={10.0}
        color="#ff0024"
        backgroundColor="#121212"
        className="balls"
      />
    );
  }
}

Props

Accepts all options from metaballs-js.

Additionally, any other props will be forwarded to the underlying canvas element. This enables styling and setting the size through className or style props.

License

MIT © MrToph

2.0.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago