1.1.2 • Published 3 years ago

pretty-preview v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

PrettyPreview

Demo

demo

Install

Install with npm:

npm i pretty-preview

Install with yarn:

yarn add pretty-preview

Install with pnpm:

pnpm add pretty-preview

Usage

import PrettyPreview from 'pretty-preview'
import 'pretty-preview/index.css'

const pp = new PrettyPreview({
  root: '.wrapper'
})

Params

paramtypedefaultdescription
rootHTMLElement | stringdocument.bodyThe parent element to listen on.
selectorstring'img'The element to listen on.
srcAttrstring'src'The property that need to be collected from the selector
useMaskbooleantrue-
loopbooleanfalseEnable infinite loop switching between pictures

License

MIT License © 2022-PRESENT Humandetail

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago