zoukankan      html  css  js  c++  java
  • CSS3图片旋转特效

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <style type="text/css">
            p#socialicons img { /* 1st set of icons. Rotate them 360deg onmouseover and out */ -moz-transition: all 0.8s ease-in-out; -webkit-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; transition: all 0.8s ease-in-out; }
            p#socialicons img:hover { -moz-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }
            p#socialicons2 img { /* 2nd set of icons. Rotate them 60deg onmouseover and out */ -moz-transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; }
            p#socialicons2 img:hover { -moz-transform: rotate(70deg); -webkit-transform: rotate(70deg); -o-transform: rotate(70deg); -ms-transform: rotate(70deg); transform: rotate(70deg); }
            p#socialicons3 img { /* 3rd set of icons. Rotate them -360deg onmouseover ONLY. Note where the "transition prop is added */ }
            p#socialicons3 img:hover { -moz-transition: all 0.5s ease-in-out; -webkit-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; -moz-transform: rotate(-360deg); -webkit-transform: rotate(-360deg); -o-transform: rotate(-360deg); -ms-transform: rotate(-360deg); transform: rotate(-360deg); }
        </style>
    </head>
    <body>
        <b>360度旋转 onmouseover和onmouseout</b></p>
        <p id="socialicons">
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/rss.png" _fcksavedurl="http:///www.zzsck.org/wp-content/uploads/2013/10/rss.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/facebook.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/yahoo.png" />
            </a>
        </p>
        <p><b>60度旋转 onMouseover and onMouseout</b></p>
        <p id="socialicons2">
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/rss.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/facebook.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/yahoo.png" />
            </a>
        </p>
        <p><b>-360度旋转 onMouseover</b></p>
        <p id="socialicons3">
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/rss.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/facebook.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png" />
            </a>
            <a href="#">
                <img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/yahoo.png" />
            </a>
        </p>
    </body>
    </html>
    

      

    中山赢友网络科技有限公司(http://www.winu.net/)承接IOS、Android、Window Phone 8+、Window 10 App应用开发,IOS、Android、Window Phone 8+游戏开发,.NET/PHP软件系统开发,HTML5网站、游戏、微官网开发。欢迎致电:0760-88809987、18676265646 陈先生。
  • 相关阅读:
    Unity项目
    Unity基本操作
    博客园自定义主题样式
    明解C语言
    C指针基础知识
    排序算法
    session理解与总结【session原理、应用、与cookie区别】
    cookie理解与实践【实现简单登录以及自动登录功能】
    【数据结构与算法】双指针思想——数组首部或尾部同向遍历
    【数据结构与算法】双指针思想——首尾双向遍历
  • 原文地址:https://www.cnblogs.com/wln3344/p/4408705.html
Copyright © 2011-2022 走看看