zoukankan      html  css  js  c++  java
  • css3动画3

    效果: 

    代码:

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title></title>
        <style>
            /* 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.5s; }
    #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.5s; }
    #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.5s; }
        
    #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>
        <ul id="movieposters">
                <li>
                    <img src="Images/01_iron_man_2.jpg" alt="Iron Man 2"/>
                    <div class="movieinfo">
                        <h3>Iron Man 2</h3>
                        <p>With the world now aware of his dual life as the armored superhero Iron Man, billionaire inventor Tony...</p>
                        <a href="http://www.imdb.com/title/tt1228705/" title="Iron Man 2">More info</a>
                    </div>
                </li>
                <li>
                    <img src="Images/02_the_last_airbender.jpg" alt="The Last Airbender"/>
                    <div class="movieinfo">
                        <h3>The Last Airbender</h3>
                        <p>The story follows the adventures of Aang, a young successor to a long line of Avatars, who must put his...</p>
                        <a href="http://www.imdb.com/title/tt0938283/" title="Iron Man 2">More info</a>
                    </div>
                </li>
                <li>
                    <img src="Images/03_tron_legacy.jpg" alt="Tron Legacy" />
                    <div class="movieinfo">
                        <h3>Tron Legacy</h3>
                        <p>Sam Flynn, the tech-savvy 27-year-old son of Kevin Flynn, looks into his father's disappearance and finds...</p>
                        <a href="http://www.imdb.com/title/tt1104001/" title="Tron Legacy">More info</a>
                    </div>
                </li>
            </ul>
    </body>
    </html>
  • 相关阅读:
    剑指offer63:数据流中的中位数
    剑指offer62:二叉搜索树的第k个结点,二叉搜索树【左边的元素小于根,右边的元素大于根】
    剑指offer61:序列化二叉树
    关于手机拍摄的图片在处理过程中出现问题的解决方法
    一道逻辑思考题
    鼠标右键无反应解决方法
    六大设计原则
    开源镜像网站
    获取当前文件夹下的文件名称
    wget使用方法
  • 原文地址:https://www.cnblogs.com/aimyfly/p/3195735.html
Copyright © 2011-2022 走看看