New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-interactive-blob

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-interactive-blob

React Interactive Blob

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by42.86%
Maintainers
1
Weekly downloads
 
Created
Source

React-Interactive Blob

React Interactive Blob is an interactive and customizable blob component for react applications. It is built in TypeScript. It can be used just like any other React JSX Component.

  • ✅ Dependency-Free
  • ✅ TypeScript Supported
  • ✅ Simple API
  • ✅ No Physics knowledge required

  • Getting Started
  • API
  • Interactive Example

Getting Started

Install react-interactive-blob


npm install react-interactive-blob


yarn add react-interactive-blob

Add to your project

import { Blob } from 'react-interactive-blob'

function MyComponent() {
  return <Blob height={500} radius={150} />
}

API

NameDescriptionTypeDefault Value
colorColor of the blob component. Right now only solid colors are supportedstring"#2f4acf"
radiusThe outer canvas pixel radius of the blob at still positionnumber128
sensitivitySensitivity of the blob component to mouse jitternumber0.5
frictionThe coefficient of friction for blob movement.number0.0095
elasticityElasticity coefficient of the blob point connectionsnumber0.001
accelerationThe acceleration of each point making up the blobnumber- 1 + Math . random () * 0.1
radialThe radial effect of each point making up the blobnumber0.1
pointsThe number of points used to construct the shape. Note that there must be at least three pointsnumber32
speedThe speed of continuous point motionnumber0.5
heightThe height of the container canvas elementnumberwindow.innerHeight
smoothingWhether a quadratic curve should be constructed between pointsbooleantrue
markersWhether to show square markers at each point vertexbooleanfalse
showMousePositionWhether to show the position of the mouse relative to the blobbooleanfalse

Interactive Example

View Interactive Example

Keywords

FAQs

Package last updated on 24 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc