Git Product home page Git Product logo

lqip-img-react's Introduction

LQIP for React

Low Quality Image Placeholder for React is a component that allows you Lazy Load images using Medium load image effects

Demo

Check this out: https://jmperezperez.com/medium-image-progressive-loading-placeholder/

Component Props

Prop Required Type Default Value Description Example
aspectRatio yes string "" Defines the aspect ratio of your image. You should use the image dimentions in the format "WIDTHxHEIGHT" "1280x720"
thumbnail yes string "" The path or url to your thumbnail image "http://www.micdn.com/cats_thumbnail.jpeg"
src yes string "" The path or url to your image "http://www.micdn.com/cats_.jpeg"
lazyLoad no string "image" This prop define how will work lazy load. You should use 1 of 3 values: image - all - none. image applies lazy load only to your images (thumbnails will be loaded all at once). all applies lazy load to both, thumbnails and images. none disable lazy load. "all"
color no string "#B9E1DC" The color for the box where the images and thumbnails will be loaded. "#B9E1DC"
blur no number 40 The pixels number of blur effect in your thumbnail 30
alt no string "" alt value for your image "something"

lqip-img-react's People

Contributors

gpuente avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.