Use pure CSS3 to achieve ultra-Three-dimensional 3D image rollover

Source: Internet
Author: User

In the morning, I saw a CSS 3 3D image side flip and tilt special effect shared by netizens on the jQuery forum. I think the effect is very good. In fact, the implementation of this stuff is really simple, the main idea is good. Let's take a look.

How? It looks pretty good. It's skewed and shadow, making a very common image so domineering.

Next, let's analyze the source code and display the html code, which is very simple:

Autumn, by Lucien Agasse

Here, the figure label of HTML5 is used to represent illustrations, which is nothing special.

Then there is the CSS code:

{:;:;:;:;:;:;:;:;}{:;:;:;:;:;:;:;:;:;:; :;:;:;:;:;}{:;:;:;:;:;:;:;:;:;:;}

Here we define the background image of figure, that is, the image we want to implement 3d effects. At the same time, the description style of the image is also defined, so that the three-dimensional effect is more prominent after the image is rolled over.

The following is the animation effect of the mouse sliding:

{:;}{:;:;}{:;}{:;}{:;:;}{:;:;}{:;}{:;:;}

It is easy to see that the transform attribute of css3 is used here, where rotateX is used to flip and translateZ is used to realize the 3D conversion of the Z axis. The idea is very clear.

Finally, share the 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.