1.0.5 • Published 1 year ago

react-bna-modern v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React before and after slider

A fast, light-weight before and after image slider for React applications.

Demo

Here

Installation

npm i react-bna-modern

API

PropTypeDefault
before (Required)string : URL or Data URI of the before image
after (Required)string : URL or Data URI of the after image
showControlsbool : to show or hide the controls boardfalse
showWidthbool : to show or hide divisor widthfalse
divisorBorderbool : to show or hide the divisor borderfalse
imageHeightnumber : The heigher of the inner image containerfalse
altstring : Alternative text for imageGenereic alt text
errorImagestring : Fallback imageGenereic fallback image
onErrorBeforefunction : Function to be called if the "before" image triggers an error eventlibrary internal onError handler
onErrorAfterfunction : Function to be called if the "after" image triggers an error eventlibrary internal onError handler
onLoadedBeforefunction : Function to be called once the "before" image triggers load eventlibrary internal onLoad handler
onLoadedAfterfunction : Function to be called once the "after" image triggers load eventlibrary internal onLoad handler

Built With

  • Webpack 4.x.x
  • Babel 6.x.x
  • ES6+

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago