0.1.0-beta.2 • Published 2 years ago

lazy-pictures v0.1.0-beta.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.1.0-beta.1

2 years ago

0.0.9

2 years ago

0.0.4

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.1

3 years ago