"Effects" hover picture stereo flip

Source: Internet
Author: User

hover Picture Flip effect Two:: Rotation around the y axis 90 degrees, pay attention to the parent layer to add perspective property perspective, so as to see the stereoscopic effect

Html:

<ul class= "List-img" >
<li>
<div> text content </div>
<span> I am a picture </span>
</li>
<li>
<div> text content </div>
<span> I am a picture </span>
</li>
<li>
<div> text content </div>
<span> I am a picture </span>
</li>
</ul>

Css:

. list-img{list-style:none;margin:0;padding:0;width:1320px;margin:100px auto 0;}
. list-img li{float:left;width:400px;height:400px;margin:0 20px;position:relative; perspective:1000px;}
. list-img Li div,.list-img li Span{width:400px;height:400px;position:absolute;}

. list-img Li Div{background:rgba (0,0,0,0.6); color: #fff; Transform:rotatey (90deg); Transition:0.5s Ease-in-out;o pacity:0;}
. list-img Li:hover Div{transform:rotatey (0); opacity:1;}

. list-img Li span{background: #0CF; transform:rotatey (0); transition:0.5s ease-in-out;opacity:1;}
. list-img li:hover Span{transform:rotatey ( -90deg); opacity:0;}

Effect preview: http://www.gbtags.com/gb/rtreplayerpreview-standalone/3094.htm

SOURCE Download: HTTP://PAN.BAIDU.COM/S/1O8TVTHG

"Effects" hover picture stereo flip

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.