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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    2
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i tilting-image

Weekly Downloads

2

Version

1.0.4

License

MIT

Last publish

Collaborators

  • darklight721