viskan-deku-zoom
v1.3.0
Published
Zoom on hover component for Deku
Downloads
18
Readme
viskan-deku-zoom
Zoom on hover component for Deku
Install
$ npm install --save viskan-deku-zoom
Usage
import Zoom from 'viskan-deku-zoom';
export function render() {
return (
<Zoom src='https://placekitten.com/400/800' zoom='https://placekitten.com/800/1600'/>
);
}
@import 'viskan-deku-zoom';
Attributes
alt
Type: string
Add alt
attribute to the image
itemprop
Type: string
Add itemprop
attribute to the image
src
Type: string
The image to show unzoomed.
zoom
Type: string
The image to used as zoom.