0.0.14 • Published 4 years ago

component-fade-plugin-react-consumer v0.0.14

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

component-fade-plugin-react-consumer

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save component-fade-plugin-react-consumer

Usage

import React, { Component } from 'react'

import { withFade } from 'component-fade-plugin-react-consumer'
import 'component-fade-plugin-react-consumer/dist/index.css'


const Example (props) => {
  return (
    <div className={props.withFadeClassname} style={props.withFadeStyle} ref={props.forwardedRef}>
      <h1>Title</h1>
      <p>some text</p>
    </div>
  )
}

export default withFade(Example)({
  classNames: {
    before: "before-fade",
    after: "after-fade"
  },
  config: {
    threshold: 0,
    triggerOnce: true
  },
  transitionConfig: {
    duration: 1000,
    delay: 1000,
    transitionProperty: "opacity",
    transitionTimingFunction: "ease"
  },
  enabled: true
})

License

MIT © marckraw

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago