Skip to content

Repository files navigation

Circle CI ##Install npm install legit-image

##What is this?

This is a react component based off this post. It works just like a regular image tag, except it will only fade in once the image has loaded.

###Example

importImagefrom'legit-image'render(){return(<Imagesrc="http://facebook.github.io/react/img/logo.svg"/>)}

##Props

  • speed: fade in speed in seconds, ex: 0.5, 1, defaults to 1

##That's about it

You can pass any other props and they will be applied to the image tag. If you have any ideas on making this better, feel free to send a pull request.

About

an img tag, with lazy loading

Resources

Stars

47 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages