Skip to content

darklight721/tilting-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A React component that adds a tilt effect on images

Resources

License

Stars

Watchers

Forks

Packages

No packages published