1.1.2 • Published 2 years ago

pretty-preview v1.1.2

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

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago