‚̧Network Powering Makers
    Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    react-breath-placeholder

    1.0.1¬†‚Äʬ†Public¬†‚Äʬ†Published

    react-breath-placeholder

    use breath effect to show react placeholder.

    NPM JavaScript Style Guide

    demo gif

    Edit react-breath-placeholder-example

    Install

    npm install --save react-breath-placeholder

    Usage

    import React, { Component } from 'react'
     
    import MyComponent from 'react-breath-placeholder'
     
    class Example extends Component {
      render () {
        return (
          <MyComponent />
        )
      }
    }

    PropTypes

    Prop Description Default
    style you can set component style by your self.(object) {width:100, height:100}
    className set class name by your self.(string) ''
    loop how many loop do you want.(number) Infinite
    duration keyframe duration millisecond.(number) 3000
    backgrounds array of background color hex.(array) ["#bbb", "#ddd", "#bbb"]

    License

    MIT © chnbohwr

    Keywords

    none

    Install

    npm i react-breath-placeholder

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    73.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar