Legitcode/image

Name: image

Owner: Legitcode

Description: an img tag, with lazy loading

Created: 2015-09-06 21:28:50.0

Updated: 2018-05-16 17:43:33.0

Pushed: 2016-04-15 14:18:02.0

Homepage: http://legitcode.github.io/image/

Size: 432

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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
rt Image from 'legit-image'

er(){
turn (
<Image src="http://facebook.github.io/react/img/logo.svg" />


Props
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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.