0.0.3 • Published 6 years ago

alternative-react-components v0.0.3

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

<Alternative /> is a React component that wraps two components <SideA />, <SideB /> inside, displays <SideA /> as a normal state, yet displays <SideB /> when you interact with(hover/click on) <Alternative />. This alternative state of <Alternative /> is transformed along with several kinds of animation to choose from.

Usage

<Alternative
  sideA={SideAComponent}
  sideB={SideBComponent}
  clickToTrigger  // default to be false, means hover to alter components
  className={"your-class-name"}  // it is possible to style the outmost <div> of <Alternative /> by giving classnames
/>

TODOS

more animations

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago