0.1.0-beta.2 • Published 11 months ago

lazy-pictures v0.1.0-beta.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

lazy-pictures

基于IntersectionObserver构造函数编写的React图片懒加载组件

使用

npm i lazy-pictures

示例

import Loader from 'lazy-pictures';
import aPng from './assets/1.jpg';

export default () => {
  return (
    <div style={{ display: 'flex', width: '100%', minWidth: "1200px" }}>
      <h1 style={{ width: '3000px', height: '600px' }}>1</h1>
      <Loader style={{ width: '200px' }} src={aPng} />
    </div>
  );
};
0.1.0-beta.2

11 months ago

0.1.0-beta.1

11 months ago

0.0.9

11 months ago

0.0.4

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago