Use transform and transition to create CSS3 animation, transformcss3

Source: Internet
Author: User

Use transform and transition to create CSS3 animation, transformcss3
<! Doctype html>
<Html lang = "en-US">
<Head>
<Meta charset = "UTF-8">
<Title> use transform and transition to create a CSS3 animation </title>
<Style>
Ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input {margin: 0; padding: 0 ;}
/* Html elements */
Body {background-color: # deddcd; font: 14px/21px Arial, Helvetica, sans-serif ;}
H1 {font: bold 65px/60px Helvetica, Arial, Sans-serif; text-align: center; color: # eee; text-shadow: 0px 2px 6px #333 ;}
H1 small {font-size: 20px; text-transform: uppercase; letter-spacing: 14px; display: block; color: #000 ;}
H2 a {display: block; text-decoration: none; margin: 0 0 30px 0; font: italic 45px Georgia, Times, Serif; text-align: center; color: # bfe1f1; text-shadow: 0px 2px 6px #333 ;}
H2 a: hover {color: #90bcd0 ;}
/* Common classes */
. Break {clear: both ;}
/* WRAPPER */
# Wrapper {width: 960px; margin: 40px auto ;}
/* CONTENT */
# Content {}
# Content. info {padding: 10px ;}
/* Movie posters */
# Movieposters {list-style: none; margin: 100px 0; height: 550px ;}
# Movieposters li {display: inline; float: left;
-Webkit-perspective: 500;-webkit-transform-style: preserve-3d;
-Webkit-transition-property: perspective;-webkit-transition-duration: 0.5 s ;}
# Movieposters li: hover {-webkit-perspective: 5000 ;}
# Movieposters li img {border: 10px solid # fcfafa;-webkit-transform: rotateY (30deg );
-Moz-box-shadow: 0 3px 10px #888;-webkit-box-shadow: 0 3px 10px #888;
-Webkit-transition-property: transform;-webkit-transition-duration: 0.5 s ;}
# Movieposters li: hover img {-webkit-transform: rotateY (0deg );}
. Movieinfo {border: 10px solid # fcfafa; padding: 20px; width: 200px; height: 180px; background-color: # deddcd; margin:-195px 0 0 55px; position: absolute;
-Moz-box-shadow: 0 20px 40px #888;-webkit-box-shadow: 0 20px 40px #888;
-Webkit-transform: translateZ (30px) rotateY (30deg );
-Webkit-transition-property: transform, box-shadow, margin;-webkit-transition-duration: 0.5 s ;}
# Movieposters li: hover. movieinfo {-webkit-transform: rotateY (0deg);-webkit-box-shadow: 0 5px 10px #888; margin:-175px 0 0 30px ;}
. Movieinfo h3 {color: # 7a3f3a; font-variant: small-caps; font-family: Georgia, serif, Times; text-align: center; padding-bottom: 15px ;}
. Movieinfo p {padding-bottom: 15px ;}
. Movieinfo a {background-color: # 7a3f3a; padding: 5px 10px; color: # eee; text-decoration: none; display: block; width: 80px; text-align: center; margin: 0 auto;
-Moz-border-radius: 5px;-webkit-border-radius: 5px ;}
. Movieinfo a: hover,. movieinfo a: focus {background-color: # 6a191f; color: # fff ;}
</Style>


</Head>
<Body>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
<Div id = "wrapper">
<Ul id = "movieposters">
<Li>

<Div class = "movieinfo">
<H3> Iron Man 2 <P> With the world now aware of his dual life as the armored superhero Iron Man, billionaire inventor Tony... </p>
<A href = "#" title = "Iron Man 2"> More info </a>
</Div>
</Li>
<Li>

<Div class = "movieinfo">
<H3> The Last Airbender <P> The story follows the adventures of Aang, a young successor to a long line of Avatars, who must put his... </p>
<A href = "#" title = "Iron Man 2"> More info </a>
</Div>
</Li>
<Li>

<Div class = "movieinfo">
<H3> Tron Legacy <P> Sam Flynn, the tech-savvy 27-year-old son of Kevin Flynn, looks into his father's disappearance and finds... </p>
<A href = "#" title = "Tron Legacy"> More info </a>
</Div>
</Li>
</Ul>
</Div>
</Div>
<Script type = "text/javascript">
Var _ bdhmProtocol = ("https:" = document. location. protocol )? "Https: //": "http ://");
Document. write (unescape ("% 3 Cscript src = '" + _ bdhmProtocol + "plain type = 'text/javascript' % 3E % 3C/script % 3E "));
</Script>
</Body>
</Html>

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.