viskan-deku-zoom

1.3.0 • Public • Published

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.

License

MIT © Viskan Distanshandel System AB

Package Sidebar

Install

npm i viskan-deku-zoom

Weekly Downloads

1

Version

1.3.0

License

MIT

Last publish

Collaborators

  • alonalon
  • anton-johansson
  • gillstrom
  • henrikpeszlen
  • michaelbergquistsuarez