Skip to content
This repository was archived by the owner on Jul 29, 2023. It is now read-only.

react-comp/lazyload

Repository files navigation

Introduction

lazyload

Install

npm

npm install "@react-comp/lazyload"

yarn

yarn add "@react-comp/lazyload"

Demo

demo

Usage

import Lazyload from "@react-comp/lazyload";
import "@react-comp/lazyload/dist/lazyload.css";

// ...

prop

<Lazyload
  src: string,                    // image source
  defaultSrc: string,             // image default source
  alt?: string,                   // alt
  className?: string[] | string,  // className
  style?: object,                 // style
/>

todo

  • Support left and right sliding

  • Support specified trigger distance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published