Hover3d. js-The jQuery plug-in that slides the mouse over an image 3D card,

Source: Internet
Author: User

Hover3d. js-The jQuery plug-in that slides the mouse over an image 3D card,

Hover3d. js is a jQuery plug-in that slides the mouse over an image 3D card. This plug-in can be used to create a 3D tilt and rotation effect when the mouse slides over the image.

Usage

To use this jQuery plug-in, you need to introduce jquery and jquery. hover3d. min. js files on the page.

<Script src = "src/jquery. min. js"> </script> <script src = "src/jquery. hover3d. min. js"> </script>
HTML Structure

The HTML structure of the effect of moving the mouse over the image is as follows: the package element and its child element will be followed by a 3D card effect.

<Div class = "project"> <div class = "project _ card"> <! -- Content element goes here --> </div>
CSS style

This effect does not require special CSS styles. You can specify your own CSS styles. However, you can add the following secondary class when you move the mouse into or out of the image.

/* This class can be replaced using options */. hover-in {transition :. 3 s timeout-out ;}. hover-out {transition :. 3 s bytes-in ;}

Download Online Preview source code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.