1.0.18 • Published 5 years ago

react-bloom v1.0.18

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

react-bloom

NPM JavaScript Style Guide

screenshot

React component that gives you a "blooming" effect when you click/tap. Easy to use, and customize.

Demo

https://wle8300.github.io/react-bloom

Install

npm install --save react-bloom

Usage

import React, { Component } from 'react'

import ReactBloom from 'react-bloom'

class Example extends Component {
  render () {
    return (
      <Foo>
        <ReactBloom
          bloomSize={75}
          backgroundColor="#5ebfff"
          opacity={0.3}
        />
      </Foo>
    )
  }
}

API

  • bloomSize PropTypes.number Pixel units. Default 100
  • animationMs PropTypes.number Milliseconds for bloom expansion
  • disappearCompound PropTypes.number Multiplier for fade. If "animationMs" is 850ms, and "disappearCompound" is 2, the fadeaway duration will be 1700ms
  • backgroundColor PropTypes.string Takes standard web color strings (ex: hex, rgba, hsl, etc)
  • opacity PropTypes.number The opacity of the bloom. Default is 0.5
  • transitionTiming PropTypes.string Like "linear", "cubic-bezier(0.215, 0.61, 0.355, 1)", "ease-in", etc. Default is "cubic-bezier(0.215, 0.61, 0.355, 1)"
  • style PropTypes.object Standard React style objects

License

MIT © wle8300

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago