1.0.0 • Published 6 years ago

image-crossfade-react v1.0.0

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

image-crossfade-react

A crossfade component built with TypeScript and React 16

Usage

You only need to pass in a source image URL to the crossfade component. The crossfade will occur when this src is updated.

import CrossFadeImage from "image-crossfade-react";

<CrossFadeImage src="https://www.placecage.com/200/300"/>

Full list of available props

NameRequired?Type
srcyesstring
durationnonumber
classNamenostring
timingFunctionnoTransitionTimingFunctionProperty
delaynonumber (in milliseconds)
altnostring
stylenoReact.CSSProperties

Roadmap

  • improve unit tests