tilting-image

1.0.4 • Public • Published

TiltingImage

A React component that adds a tilt effect on images.

Inspired by ImageTiltEffect.

See it in action here.

Install

With npm:

npm install tilting-image

Or grab TiltingImage.js.

Usage

<TiltingImage src="images/image1.jpeg" width="800px" height="600px" />

Options

src - the image source

width - component width (accepts any CSS width values)

height - component height (accepts any CSS height values)

className - adds a class attribute (optional)

Package Sidebar

Install

npm i tilting-image

Weekly Downloads

11

Version

1.0.4

License

MIT

Last publish

Collaborators

  • darklight721