• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Progressively load images using a blur effect.

React Progressive Image Loading

Progressively load images using a blur effect.

CircleCI npm version

example

Installation

$ npm install react-progressive-image-loading --save

Import

import ProgressiveImage from "react-progressive-image-loading";

Usage

<ProgressiveImage
    preview="/images/tiny-preview.png"
    src="/images/preview.png"
    render={(src, style) => <img src={src} style={style} />}
/>

Instead of using the img tag, you can use background-image with a div.

<ProgressiveImage
    preview="/images/tiny-preview.png"
    src="/images/preview.png"
    render={(src, style) => <div style={Object.assign(style, { backgroundImage: `url(${src})` })} />}
/>

You can also customize the transition time and the timing function used for that transition.

<ProgressiveImage
    preview="/images/tiny-preview.png"
    src="/images/preview.png"
    transitionTime={500}
    transitionFunction="ease"
    render={(src, style) => <img src={src} style={style} />}
/>

More Repositories

1

can-it-be-done-in-react-native

โš›๏ธ ๐Ÿ“บ Projects from the โ€œCan it be done in React Native?โ€ YouTube series
TypeScript
4,045
star
2

react-native-redash

The React Native Reanimated and Gesture Handler Toolbelt
TypeScript
1,982
star
3

react-native-img-cache

Image Cache for React Native
TypeScript
731
star
4

swagger-js-codegen

A Swagger Codegen for typescript, nodejs & angularjs
HTML
690
star
5

react-native-expo-image-cache

React Native Image Cache and Progressive Loading based on Expo
TypeScript
672
star
6

react-native-webgpu

React Native implementation of WebGPU using Dawn
TypeScript
407
star
7

remotion-fireship

Fireship video made with React
TypeScript
366
star
8

eslint-config-react-native-wcandillon

ESLint and TypeScript configuration for React Native
JavaScript
251
star
9

react-native-gestures-and-animations-workshop

TypeScript
117
star
10

react-native-shader

Java
107
star
11

eslint-plugin-reanimated

TypeScript
76
star
12

canvaskit-js

A polyfill of CanvasKit that uses browser APIs
TypeScript
76
star
13

love-death-react

Love, Death & React
TypeScript
73
star
14

eslint-plugin-ts-exports

ESLint wrapper for ts-unused-export
TypeScript
68
star
15

jsoniq

JSONiq Implementation that compiles to JavaScript
TypeScript
63
star
16

xqlint

JSONiq & XQuery Quality Checker
JavaScript
49
star
17

remotion-skia

TypeScript
46
star
18

remotion-skia-tutorial

TypeScript
21
star
19

react-native-static-images

Generate a file for static images for react native projects
JavaScript
21
star
20

react-native-redash-docs

19
star
21

react-skia-experiment

Ruby
16
star
22

grunt-swagger-js-codegen

Grunt Task for Swagger JS Codegen
JavaScript
16
star
23

firebase-bolt-compiler

Compiles Firebase Bolt files to TypeScript, Flow, and more
TypeScript
14
star
24

mkbhd-intro

TypeScript
11
star
25

material-ui-flow

Flow Types for Material UI
JavaScript
9
star
26

react-native-redash-v1-docs

9
star
27

expo-tutorial

TypeScript
8
star
28

react-native-image-viewer

An experiment
TypeScript
7
star
29

courrier

Postman runner that can run requests in parallel
JavaScript
6
star
30

xquery.js

Deprecated use XQLint instead
XQuery
5
star
31

language-jsoniq

JSONiq & XQuery Package for Atom
JavaScript
5
star
32

appjs-workshop-2020

5
star
33

react-native-do-firebase-documentation

4
star
34

react-native-eslint-rules

My ESLint configuration for React Native Projects
JavaScript
4
star
35

react-native-do-documentation

React Native Do Documentation
4
star
36

react-native-init

3
star
37

jsoniq-mongodb-examples

JSONiq Query Examples for MongoDB
JSONiq
3
star
38

grunt-xqlint

Grunt task for XQLint
JavaScript
2
star
39

zorba.js

Zorba Compiled to JavaScript
C++
2
star
40

xqdoc

XQuery Documentation
2
star
41

react-native-do-purple-sky-documentation

React Native Do Purple Sky Documentation
2
star
42

dropbox.xq

Dropbox client library written in XQuery
XQuery
2
star
43

cloud9-xquery

XQuery extension for cloud9 IDE
JavaScript
2
star
44

jsoniq-demo

JSONiq Demo
JSONiq
1
star
45

cms

JSONiq
1
star
46

intro-html

A robot powered training repository ๐Ÿค–
HTML
1
star
47

react-native-ting-documentation

React Native Ting Documentation
1
star
48

cloud9.xq

XQuery Backend for Cloud9
JavaScript
1
star
49

gist-to-png

JavaScript
1
star
50

xbrl-crawler

JavaScript
1
star