Socket
Socket
Sign inDemoInstall

react-crossfade-image

Package Overview
Dependencies
396
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-crossfade-image

Simple React component for crossfading images


Version published
Weekly downloads
703
decreased by-5.13%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-crossfade-image

Simple component for crossfading images. Just pass it a new src prop and enjoy the fade!

Usage

<CrossfadeImage
  src={imageSrc}
  duration={500}
  timingFunction={"ease-out"}
  delay={200}
/>

Clone and run npm start for demo.

Props

src

Image source as string - required

duration

Duration of the fade, in ms - default to 300

timingFunction

Support all CSS timing functions - default to 'ease'

delay

Duration of the delay before fading, in ms - default to 0

style

Styling for the image wrapper

License

MIT

Keywords

FAQs

Last updated on 20 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc