All Projects → Volorf → Hover3D.js

Volorf / Hover3D.js

Licence: MIT license
A cool 3D hover effect for your awesome web project.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hover3D.js

HoveringCallback
Drag & drop item decorator for RecyclerView with support for highlighting hovered items.
Stars: ✭ 15 (-71.7%)
Mutual labels:  hover-effects
adeolaadeoti-v2
The second iteration of my portfolio
Stars: ✭ 67 (+26.42%)
Mutual labels:  hover-effects
btns
A collection of buttons with cool hover effects
Stars: ✭ 78 (+47.17%)
Mutual labels:  hover-effects

Cool 3D hover effect for your awesome web project

Have you seen these amazing 3D hover effect on Apple TV? Have you known that you can easily make similar effect? Just like that!

Apple TV 3D Hover Effect

Three simple steps

  1. Download it;
  2. Add hover3D.js to your page;
  3. Create a new Hover3D() instance.

🔥 Live demo

How to add hover3D.js to my page

Put a hover3D.js link in the <head> section.

<!-- A 3d-hover-effect link -->
<script src="hover3D.js"></script>
</head>

How to create 3D hover effect

It's just a single line of code!

<!-- Create a HoverEffect object and pass an id/className of HTML element(s) you want to create the effect to -->
<script>
    let myHover3D = new Hover3D(".card"); // Yep! That's it.
</script>
</body>

How to customize it

You have a bunch of properties you can tweak to control the effect.

// X-axis offset
myHover3D.xOffset = 10;
// Y-axis offset
myHover3D.yOffset = 10;
// Attack. How fast the element reacts to cursor movement
myHover3D.attack = 0.1;
// Release. How fast the element repairs its initial state when your cursor leaves it
myHover3D.release = 0.5;
// Sets the distance between the user and the z=0 plane
myHover3D.perspective = 500;

Links

Portfolio | Linkedin | Dribbble | Twitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].