CSS3 Animation for Carousel

Source: Internet
Author: User

Write the carousel, the whim want to add a mask effect, it is of course with Box-reflect attribute, but goose, but was Overflow:hidden pit ....

Write the effect is not come out, too capricious have wood, code is correct, also did not error, but out of the effect is certainly for a reason, the original is the hand to pack the picture of Li label added a overflow:hidden, is drunk haha haha, remove on good, on the code:

<! DOCTYPE html>


<meta charset= "UTF-8" >
<title></title>
<style type= "Text/css" >

*{margin:0;padding:0}
html,body{width:100%;height:100%;}
Body{background:url (img1/pic6.jpg) no-repeat; Background-size:cover}
ul{width:200px;height:300px; position:absolute; Top:0;right:0;left:0;bottom:0;margin:auto ;
transform-style:preserve-3d; transition:all 50s; Animation:move 5s ease-in-out Infinite;}
ul li{list-style:none;width:180px;height:260px; position:absolute;left:0;top:0;/*overflow:hidden;*/
}
ul Li img{width:100%;height:100%;
-webkit-box-reflect:below 10px linear-gradient (Rgba (255,255,255,0) 50%,rgba (255,255,255,0.7));
}
. img1{Transform:translatez (350px)}
. img2{Transform:rotatey (30deg) Translatez (360px);}
. img3{Transform:rotatey (60deg) Translatez (360px);}
. img4{Transform:rotatey (90deg) Translatez (360px);}
. img5{Transform:rotatey (120deg) Translatez (360px);}
. img6{Transform:rotatey (150deg) Translatez (360px);}
. img7{Transform:rotatey (180deg) Translatez (360px);}
. img8{Transform:rotatey (210deg) Translatez (360px);}
. img9{Transform:rotatey (240deg) Translatez (360px);}
. img10{Transform:rotatey (270deg) Translatez (360px);}
. img11{Transform:rotatey (300deg) Translatez (360px);}
. img12{Transform:rotatey (330deg) Translatez (360px);}

@-webkit-keyframes move{
from{Transform:rotate3d (0,0,1,45deg);}
to{Transform:rotate3d (1,2,1,1000deg);}
}
body:hover ul{Transform:rotatey (45deg);}
</style>

<body>
<ul>
<li class= "img1" ></li>
<li class= "Img2" ></li>
<li class= "IMG3" ></li>
<li class= "Img4" ></li>
<li class= "img5" ></li>
<li class= "Img6" ></li>
<li class= "Img7" ></li>
<li class= "Img8" ></li>
<li class= "img9" ></li>
<li class= "img10" ></li>
<li class= "img11" ></li>
<li class= "img12" ></li>
</ul>
<script type= "Text/javascript" >
//var TZ = Math.Round ((180/2)/Math.tan (MATH.PI/10));
//alert (TZ);
</script>
</body>

CSS3 Animation for Carousel

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.