鼠标悬停css3动画效果
html:
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>鼠标悬停css3动画效果</title>
- <link href="css/lanrenzhijia.css" rel="stylesheet" type="text/css" />
- <style>
- .main a:not(:hover):not(:target) {-webkit-animation: 0s ease 0s normal none none;}
- .main a:not(:hover):not(:target) {-moz-animation: 0s ease 0s normal none none;}
- .main a:not(:hover):not(:target) {animation: 0s ease 0s normal none none !important;}
- </style>
- </head>
- <body>
- <div class="box">
- <div class="main">
- <a id="border-radius"></a>
- <a id="border-radius-2"></a>
- <a id="border-width"></a>
- <a id="border-width-2"></a>
- <a id="border-width-3"></a>
- <a id="background-color"></a>
- <a id="background-position"></a>
- <a id="background-position-2"></a>
- <a id="background-size"></a>
- <a id="text-shadow"></a>
- <a id="text-shadow-2"></a>
- <a id="text-shadow-3"></a>
- <a id="box-shadow"></a>
- <a id="box-shadow-2"></a>
- <a id="font-size"></a>
- <a id="font-size-2"></a>
- <a id="letter-spacing"></a>
- <a id="text-indent"></a>
- <a id="height"></a>
- <a id="line-height"></a>
- <a id="transform"></a>
- <a id="transform-2"></a>
- <a id="transform-3"></a>
- <a id="transform-4"></a>
- <a id="transform-5"></a>
- <a id="transform-6"></a>
- <a id="transform-7"></a>
- <a id="transform-8"></a>
- <a id="transform-9"></a>
- <a id="transform-10"></a>
- <a id="transform-origin"></a>
- <a id=""></a>
- </div>
- </div>
- </body>
- </html>
CSS:
- body, h1, p, ul, li {padding:; margin:;}
- ul, li {list-style:none;}
- body {font-family:Futura,'Century Gothic',sans-serif; background:url(../images/bg.jpg) repeat;}
- a {color:#; text-decoration:none;}
- .box {width:%; margin:50px ; text-align:center;}
- .box h1 {text-align:center; font-size:%; line-height:; margin-bottom:20px;}
- .box h1 p {font-size:26px; color:#c6c6c6; display:block;}
- .box h1 p a {color:#c6c6c6;}
- .hover-all {margin-top:20px;}
- #hover, #all {font-size:12px; background-color:#; padding:5px 10px; margin:10px; color:#FFF; border-radius:2px;}
- #hover:hover, #all:hover {background-color:#;}
- .main {width:%; margin:10px auto; counter-reset:demo;}
- .main:after {content:""; clear:both; display:block;}
- .main a {width:175px; height:175px; line-height:175px; float:left; margin:18px; background:#bfbfbf; cursor:pointer; font-size:80px; color:#FFF; display:block; counter-increment:demo; position:relative; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; text-align:center;}
- .main a:before {content:counter(demo, decimal);}
- .main a:after {content:attr(id); position:absolute; color:#; font-size:14px; right:; left:; bottom:-20px; line-height:; text-shadow:none; letter-spacing:;}
- .info {margin-top:30px; font-size:12px;}
- /** 1 **/
- #border-radius {-webkit-animation:border-radius 1s ease 0s alternate none infinite;}
- #border-radius {-moz-animation:border-radius 1s ease 0s alternate none infinite;}
- #border-radius {animation:border-radius 1s ease 0s alternate none infinite;}
- @-webkit-keyframes border-radius { from{border-radius: ; } to{border-radius: %; } }
- @-moz-keyframes border-radius { from{border-radius: ; } to{border-radius: %; } }
- @keyframes border-radius { from{border-radius: ; } to{border-radius: %; } }
- /** 2 **/
- #border-radius- {-webkit-animation:border-radius- 1s ease 0s alternate none infinite; border-radius: %;}
- #border-radius- {-moz-animation:border-radius- 1s ease 0s alternate none infinite; border-radius: %;}
- #border-radius- {animation:border-radius- 1s ease 0s alternate none infinite; border-radius: %;}
- @-webkit-keyframes border-radius- { from{border-radius: %; } to{border-radius:% ; } }
- @-moz-keyframes border-radius- { from{border-radius: %; } to{border-radius:% ; } }
- @keyframes border-radius- { from{border-radius: %; } to{border-radius:% ; } }
- /** 3 **/
- #border-width {-webkit-animation:border-width 1s ease 0s alternate none infinite; border: ridge #;}
- #border-width {-moz-animation:border-width 1s ease 0s alternate none infinite; border: ridge #;}
- #border-width {animation:border-width 1s ease 0s alternate none infinite; border: ridge #;}
- @-webkit-keyframes border-width { from{border-width:; } to{ border-width:80px;} }
- @-moz-keyframes border-width { from{border-width:; } to{ border-width:80px;} }
- @keyframes border-width { from{border-width:; } to{ border-width:80px;} }
- /** 4 **/
- #border-width- {-webkit-animation:border-width- 1s ease 0s alternate none infinite; border: dashed #;}
- #border-width- {-moz-animation:border-width- 1s ease 0s alternate none infinite; border: dashed #;}
- #border-width- {animation:border-width- 1s ease 0s alternate none infinite; border: dashed #;}
- @-webkit-keyframes border-width- { from{border-width:; } to{ border-width:60px;} }
- @-moz-keyframes border-width- { from{border-width:; } to{ border-width:60px;} }
- @keyframes border-width- { from{border-width:; } to{ border-width:60px;} }
- /** 5 **/
- #border-width- {-webkit-animation:border-width- 1s ease 0s alternate none infinite; border: double #;}
- #border-width- {-moz-animation:border-width- 1s ease 0s alternate none infinite; border: double #;}
- #border-width- {animation:border-width- 1s ease 0s alternate none infinite; border: double #;}
- @-webkit-keyframes border-width- { from{border-width:; } to{ border-width:80px;} }
- @-moz-keyframes border-width- { from{border-width:; } to{ border-width:80px;} }
- @keyframes border-width- { from{border-width:; } to{ border-width:80px;} }
- /** 6 **/
- #background-color {-webkit-animation:background-color 1s ease 0s alternate none infinite;}
- #background-color {-moz-animation:background-color 1s ease 0s alternate none infinite;}
- #background-color {animation:background-color 1s ease 0s alternate none infinite;}
- @-webkit-keyframes background-color { from{background-color:#BFBFBF; } to{ background-color:#; } }
- @-moz-keyframes background-color { from{background-color:#BFBFBF; } to{ background-color:#; } }
- @keyframes background-color { from{background-color:#BFBFBF; } to{ background-color:#; } }
- /** 7 **/
- #background-position {-webkit-animation:background-position 1s ease 0s alternate none infinite; background-image:-webkit-linear-gradient(135deg, transparent %, black %, black %, transparent %, transparent %, black %, black); background-size:60px 60px;}
- #background-position {-moz-animation:background-position 1s ease 0s alternate none infinite; background-image:-moz-linear-gradient(-45deg, transparent %, black %, black %, transparent %, transparent %, black %, black); background-size:60px 60px;}
- #background-position {animation:background-position 1s ease 0s alternate none infinite; background-image:linear-gradient(-45deg, transparent %, black %, black %, transparent %, transparent %, black %, black); background-size:60px 60px;}
- @-webkit-keyframes background-position{ from{background-position: ; } to{ background-position:% %; } }
- @-moz-keyframes background-position{ from{background-position: ; } to{ background-position:% %; } }
- @keyframes background-position{ from{background-position: ; } to{ background-position:% %; } }
- /** 8 **/
- #background-position- {-webkit-animation:background-position- 1s ease 0s alternate none infinite; background-color:#E04332; background-image:-webkit-linear-gradient(135deg, slateGray %, transparent %), -webkit-linear-gradient(45deg, transparent %, slateGray %), -webkit-linear-gradient(45deg, slateGray %, transparent %), -webkit-linear-gradient(135deg, transparent %, slateGray %); background-size:30px 370px; background-repeat:repeat-x; background-position:10px , 10px , 20px -190px, 20px -190px;}
- #background-position- {-moz-animation:background-position- 1s ease 0s alternate none infinite; background-color:#E04332; background-image:-moz-linear-gradient(-45deg, slategray %, transparent %), linear-gradient(45deg, transparent %, slategray %), linear-gradient(45deg, slategray %, transparent %), linear-gradient(-45deg, transparent %, slategray %); background-size:30px 370px; background-repeat:repeat-x; background-position:10px , 10px , 20px -190px, 20px -190px;}
- #background-position- {animation:background-position- 1s ease 0s alternate none infinite; background-color:#E04332; background-image:linear-gradient(-45deg, slategray %, transparent %), linear-gradient(45deg, transparent %, slategray %), linear-gradient(45deg, slategray %, transparent %), linear-gradient(-45deg, transparent %, slategray %); background-size:30px 370px; background-repeat:repeat-x; background-position:10px , 10px , 20px -190px, 20px -190px;}
- @-webkit-keyframes background-position-{ from{background-position:10px , 10px , 20px -190px, 20px -190px; } to{ background-position:10px -70px, 10px -70px, 18px -120px, 18px -120px; } }
- @-moz-keyframes background-position-{ from{background-position:10px , 10px , 20px -190px, 20px -190px; } to{ background-position:10px -70px, 10px -70px, 18px -120px, 18px -120px; } }
- @keyframes background-position-{ from{background-position:10px , 10px , 20px -190px, 20px -190px; } to{ background-position:10px -70px, 10px -70px, 18px -120px, 18px -120px; } }
- /** 9 **/
- #background-size {-webkit-animation:background-size 1s ease 0s alternate none infinite; background-image:-webkit-repeating-radial-gradient(transparent, transparent 9px, black 11px, black 20px); background-size:5px 5px; background-position:center center;}
- #background-size {-moz-animation:background-size 1s ease 0s alternate none infinite; background-image:-moz-repeating-radial-gradient(transparent, transparent 9px, black 11px, black 20px); background-size:5px 5px; background-position:center center;}
- #background-size {animation:background-size 1s ease 0s alternate none infinite; background-image:repeating-radial-gradient(transparent, transparent 9px, black 11px, black 20px); background-size:5px 5px; background-position:center center;}
- @-webkit-keyframes background-size{ from{background-size:5px 5px; } to{ background-size:150px 150px; } }
- @-moz-keyframes background-size{ from{background-size:5px 5px; } to{ background-size:150px 150px; } }
- @keyframes background-size{ from{background-size:5px 5px; } to{ background-size:150px 150px; } }
- /** 10 **/
- #text-shadow{-webkit-animation:text-shadow 1s ease 0s alternate none infinite;}
- #text-shadow{-moz-animation:text-shadow 1s ease 0s alternate none infinite;}
- #text-shadow{animation:text-shadow 1s ease 0s alternate none infinite;}
- @-webkit-keyframes text-shadow { from{text-shadow: #; } to{text-shadow:20px 20px 10px rgba(,,,0.5); } }
- @-moz-keyframes text-shadow { from{text-shadow: #; } to{text-shadow:20px 20px 10px rgba(,,,0.5); } }
- @keyframes text-shadow { from{text-shadow: #; } to{text-shadow:20px 20px 10px rgba(,,,0.5); } }
- /** 11 **/
- #text-shadow- {-webkit-animation:text-shadow- 1s ease 0s alternate none infinite;}
- #text-shadow- {-moz-animation:text-shadow- 1s ease 0s alternate none infinite;}
- #text-shadow- {animation:text-shadow- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes text-shadow- { from{text-shadow: #; } to{text-shadow: 20px #FFF; } }
- @-moz-keyframes text-shadow- { from{text-shadow: #; } to{text-shadow: 20px #FFF; } }
- @keyframes text-shadow- { from{text-shadow: #; } to{text-shadow: 20px #FFF; } }
- /** 12 **/
- #text-shadow- {-webkit-animation:text-shadow- 1s ease 0s alternate none infinite;}
- #text-shadow- {-moz-animation:text-shadow- 1s ease 0s alternate none infinite;}
- #text-shadow- {animation:text-shadow- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes text-shadow- { from{text-shadow: white; } to{text-shadow: rgba(,,,), -45px -45px red, -30px -30px orange, -15px -15px yellow, green, 15px 15px blue, 30px 30px indigo, 45px 45px violet; } }
- @-moz-keyframes text-shadow- { from{text-shadow: white; } to{text-shadow: rgba(,,,), -45px -45px red, -30px -30px orange, -15px -15px yellow, green, 15px 15px blue, 30px 30px indigo, 45px 45px violet; } }
- @keyframes text-shadow- { from{text-shadow: white; } to{text-shadow: rgba(,,,), -45px -45px red, -30px -30px orange, -15px -15px yellow, green, 15px 15px blue, 30px 30px indigo, 45px 45px violet; } }
- /** 13 **/
- #box-shadow {-webkit-animation:box-shadow 1s ease 0s alternate none infinite; -webkit-box-shadow: 75px 75px #BFBFBF inset, #BFBFBF;}
- #box-shadow {-moz-animation:box-shadow 1s ease 0s alternate none infinite; -moz-box-shadow: 75px 75px #BFBFBF inset, #BFBFBF;}
- #box-shadow {animation:box-shadow 1s ease 0s alternate none infinite; box-shadow: 75px 75px #BFBFBF inset, #BFBFBF;}
- @-webkit-keyframes box-shadow { from{box-shadow: 75px 75px #BFBFBF inset, #BFBFBF; } to{box-shadow:inset 35px 50px #ccc, 75px 50px #ccc; } }
- @-moz-keyframes box-shadow { from{box-shadow: 75px 75px #BFBFBF inset, #BFBFBF; } to{box-shadow:inset 35px 50px #ccc, 75px 50px #ccc; } }
- @keyframes box-shadow { from{box-shadow: 75px 75px #BFBFBF inset, #BFBFBF; } to{box-shadow:inset 35px 50px #ccc, 75px 50px #ccc; } }
- /** 14 **/
- #box-shadow-{-webkit-animation:box-shadow- 1s ease 0s alternate none infinite;}
- #box-shadow-{-moz-animation:box-shadow- 1s ease 0s alternate none infinite;}
- #box-shadow-{animation:box-shadow- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes box-shadow- { from{box-shadow: #; } to{box-shadow: 150px 10px -50px rgba(,,,.); } }
- @-moz-keyframes box-shadow- { from{box-shadow: #; } to{box-shadow: 150px 10px -50px rgba(,,,.); } }
- @keyframes box-shadow- { from{box-shadow: #; } to{box-shadow: 150px 10px -50px rgba(,,,.); } }
- /** 15 **/
- #font-size {-webkit-animation:font-size 1s ease 0s alternate none infinite;}
- #font-size {-moz-animation:font-size 1s ease 0s alternate none infinite;}
- #font-size {animation:font-size 1s ease 0s alternate none infinite;}
- @-webkit-keyframes font-size { from{font-size:80px; } to{font-size:10px; } }
- @-moz-keyframes font-size { from{font-size:80px; } to{font-size:10px; } }
- @keyframes font-size { from{font-size:80px; } to{font-size:10px; } }
- /** 16 **/
- #font-size- {-webkit-animation:font-size- 1s ease 0s alternate none infinite;}
- #font-size- {-moz-animation:font-size- 1s ease 0s alternate none infinite;}
- #font-size- {animation:font-size- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes font-size- { from{font-size:80px; } to{font-size:250px; } }
- @-moz-keyframes font-size- { from{font-size:80px; } to{font-size:250px; } }
- @keyframes font-size- { from{font-size:80px; } to{font-size:250px; } }
- /** 17 **/
- #letter-spacing {-webkit-animation:letter-spacing 1s ease 0s alternate none infinite; overflow:hidden;}
- #letter-spacing {-moz-animation:letter-spacing 1s ease 0s alternate none infinite; overflow:hidden;}
- #letter-spacing {animation:letter-spacing 1s ease 0s alternate none infinite; overflow:hidden;}
- @-webkit-keyframes letter-spacing { from{letter-spacing:; } to{letter-spacing:90px; } }
- @-moz-keyframes letter-spacing { from{letter-spacing:; } to{letter-spacing:90px; } }
- @keyframes letter-spacing { from{letter-spacing:; } to{letter-spacing:90px; } }
- /** 18 **/
- #text-indent {-webkit-animation:text-indent 1s ease 0s alternate none infinite;}
- #text-indent {-moz-animation:text-indent 1s ease 0s alternate none infinite;}
- #text-indent {animation:text-indent 1s ease 0s alternate none infinite;}
- @-webkit-keyframes text-indent { from{text-indent:; } %{text-indent:100px; } to{text-indent:-100px; } }
- @-moz-keyframes text-indent { from{text-indent:; } %{text-indent:100px; } to{text-indent:-100px; } }
- @keyframes text-indent { from{text-indent:; } %{text-indent:100px; } to{text-indent:-100px; } }
- /** 19 **/
- #height {-webkit-animation:height 1s ease 0s alternate none infinite;}
- #height {-moz-animation:height 1s ease 0s alternate none infinite;}
- #height {animation:height 1s ease 0s alternate none infinite;}
- @-webkit-keyframes height { from{height:175px; } to{height:10px; } }
- @-moz-keyframes height { from{height:175px; } to{height:10px; } }
- @keyframes height { from{height:175px; } to{height:10px; } }
- /** 20 **/
- #line-height {-webkit-animation:line-height 1s ease 0s alternate none infinite; line-height:60px;}
- #line-height {-moz-animation:line-height 1s ease 0s alternate none infinite; line-height:60px;}
- #line-height {animation:line-height 1s ease 0s alternate none infinite; line-height:60px;}
- @-webkit-keyframes line-height { from{line-height:60px; } to{line-height:350px; } }
- @-moz-keyframes line-height { from{line-height:60px; } to{line-height:350px; } }
- @keyframes line-height { from{line-height:60px; } to{line-height:350px; } }
- /** 21 **/
- #transform {-webkit-animation:transform 1s ease 0s alternate none infinite;}
- #transform {-moz-animation:transform 1s ease 0s alternate none infinite;}
- #transform {animation:transform 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform { from{-webkit-transform:rotate(0deg); } to{-webkit-transform:rotate(360deg); } }
- @-moz-keyframes transform { from{-moz-transform:rotate(0deg); } to{-moz-transform:rotate(360deg); } }
- @keyframes transform { from{transform:rotate(0deg); } to{transform:rotate(360deg); } }
- /** 22 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:scale(); } to{-webkit-transform:scale(); } }
- @-moz-keyframes transform- { from{-moz-transform:scale(); } to{-moz-transform:scale(); } }
- @keyframes transform- { from{transform:scale(); } to{transform:scale(); } }
- /** 23 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:skewX(0deg); } %{-webkit-transform:skewX(30deg); } %{-webkit-transform:skewX(0deg); } %{-webkit-transform:skewX(-30deg); } to{-webkit-transform:skewX(0deg); } }
- @-moz-keyframes transform- { from{-moz-transform:skewX(0deg); } %{-moz-transform:skewX(30deg); } %{-moz-transform:skewX(0deg); } %{-moz-transform:skewX(-30deg); } to{-moz-transform:skewX(0deg); } }
- @keyframes transform- { from{transform:skewX(0deg); } %{transform:skewX(30deg); } %{transform:skewX(0deg); } %{transform:skewX(-30deg); } to{transform:skewX(0deg); } }
- /** 24 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:rotate(0deg) scale(); } to{-webkit-transform:rotate(360deg) scale(0.1); } }
- @-moz-keyframes transform- { from{-moz-transform:rotate(0deg) scale(); } to{-moz-transform:rotate(360deg) scale(0.1); } }
- @keyframes transform- { from{transform:rotate(0deg) scale(); } to{transform:rotate(360deg) scale(0.1); } }
- /** 25 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:perspective(400px) rotateY(0deg); } to{-webkit-transform:perspective(400px) rotateY(360deg); } }
- @-moz-keyframes transform- { from{-moz-transform:perspective(400px) rotateY(0deg); } to{-moz-transform:perspective(400px) rotateY(360deg); } }
- @keyframes transform- { from{transform:perspective(400px) rotateY(0deg); } to{transform:perspective(400px) rotateY(360deg); } }
- /** 26 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:perspective(400px) rotateX(0deg); } to{-webkit-transform:perspective(400px) rotateX(360deg); } }
- @-moz-keyframes transform- { from{-moz-transform:perspective(400px) rotateX(0deg); } to{-moz-transform:perspective(400px) rotateX(360deg); } }
- @keyframes transform- { from{transform:perspective(400px) rotateX(0deg); } to{transform:perspective(400px) rotateX(360deg); } }
- /** 27 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:perspective(400px) rotateY(0deg); } to{-webkit-transform:perspective(400px) translateZ(150px) rotateY(180deg); } }
- @-moz-keyframes transform- { from{-moz-transform:perspective(400px) rotateY(0deg); } to{-moz-transform:perspective(400px) translateZ(150px) rotateY(180deg); } }
- @keyframes transform- { from{transform:perspective(400px) rotateY(0deg); } to{transform:perspective(400px) translateZ(150px) rotateY(180deg); } }
- /** 28 **/
- #transform- {-webkit-animation:transform- 2s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 2s ease 0s alternate none infinite;}
- #transform- {animation:transform- 2s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:perspective(400px) translate3d(0px, 0px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); } to{-webkit-transform:perspective(400px) translate3d(,,-5000px) rotateX(720deg) rotateY(360deg) rotateZ(-360deg); } }
- @-moz-keyframes transform- { from{-moz-transform:perspective(400px) translate3d(0px, 0px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); } to{-moz-transform:perspective(400px) translate3d(,,-5000px) rotateX(720deg) rotateY(360deg) rotateZ(-360deg); } }
- @keyframes transform- { from{transform:perspective(400px) translate3d(0px, 0px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); } to{transform:perspective(400px) translate3d(,,-5000px) rotateX(720deg) rotateY(360deg) rotateZ(-360deg); } }
- /** 29 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform- { from{-webkit-transform:perspective(400px) rotate3d(,,,0deg); } to{-webkit-transform:perspective(400px) rotate3d(,,,180deg); } }
- @-moz-keyframes transform- { from{transform:perspective(400px) rotate3d(,,,0deg); } to{transform:perspective(400px) rotate3d(,,,180deg); } }
- @keyframes transform- { from{transform:perspective(400px) rotate3d(,,,0deg); } to{transform:perspective(400px) rotate3d(,,,180deg); } }
- /** 30 **/
- #transform- {-webkit-animation:transform- 1s ease 0s alternate none infinite; -webkit-transform-origin:% % ;}
- #transform- {-moz-animation:transform- 1s ease 0s alternate none infinite; -moz-transform-origin:% % ;}
- #transform- {animation:transform- 1s ease 0s alternate none infinite; transform-origin:% % ;}
- @-webkit-keyframes transform- { from{-webkit-transform:perspective(400px) rotate3d(,,,0deg); } to{-webkit-transform:perspective(400px) rotate3d(,,,-180deg); } }
- @-moz-keyframes transform- { from{-moz-transform:perspective(400px) rotate3d(,,,0deg); } to{-moz-transform:perspective(400px) rotate3d(,,,-180deg); } }
- @keyframes transform- { from{transform:perspective(400px) rotate3d(,,,0deg); } to{transform:perspective(400px) rotate3d(,,,-180deg); } }
- /** 31 **/
- #transform-origin {-webkit-animation:transform-origin 1s ease 0s alternate none infinite;}
- #transform-origin {-moz-animation:transform-origin 1s ease 0s alternate none infinite;}
- #transform-origin {animation:transform-origin 1s ease 0s alternate none infinite;}
- @-webkit-keyframes transform-origin { from{-webkit-transform:% % ; -webkit-transform:rotate(0deg); } to{-webkit-transform-origin: %; -webkit-transform:rotate(45deg); } }
- @-moz-keyframes transform-origin { from{-moz-transform:% % ; -moz-transform:rotate(0deg); } to{-moz-transform-origin: %; transform:rotate(45deg); } }
- @keyframes transform-origin { from{transform:% % ; transform:rotate(0deg); } to{transform-origin: %; transform:rotate(45deg); } }
鼠标悬停css3动画效果的更多相关文章
- jQuery鼠标悬停内容动画切换效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 15款css3鼠标悬停图片动画过渡特效
分享15款css3鼠标悬停图片动画过渡特效.这是一款15款不同效果的css3 hover动画过渡效果代码.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class ...
- 基于jQuery CSS3鼠标点击动画效果
分享基于jQuery CSS3鼠标点击动画效果支持图片或内容滑动,允许设置动画延迟效果.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class="co ...
- 基于html5鼠标悬停图片动画展示效果
分享一款基于html5鼠标悬停图片动画展示效果.里面包含两款不同效果的html5图片展示效果.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class=" ...
- Bounce.js – 快速创建漂亮的 CSS3 动画效果
Bounce.js 是一个用于制作漂亮的 CSS3 关键帧动画的 JavaScript 库,使用其特有的方式生成的动画效果.只需添加一个组件,选择预设,然后你就可以得到一个短网址或者导出为 CSS 代 ...
- 一款很实用的jQuery鼠标悬浮有动画效果的响应式瀑布流插件
一款很实用的jQuery鼠标悬浮有动画效果的响应式瀑布流插件 在线预览 下载地址 实例代码 <!doctype html> <html lang="zh"> ...
- CSS3 动画效果带来的bug
css3 动画效果比如transition:all 2s linear;这种用来计算及时的物体坐标的话会带来一定的问题 比如把一个DIV从A点移动到B点.JS为DIV.style.left=B; 但是 ...
- animate.css 一些常用的CSS3动画效果
大家已经开始在项目中使用一些CSS3动画效果了吧,这让网站在高端浏览器上看起来很上流.animate.css是一个老外做的各种CSS3动画的合集,比较全,也很炫,大家可以参考学习一下. 项目主页:ht ...
- CSS Animatie是一款在线制作CSS3动画的工具,可以在线直接制作CSS3动画效果,生成代码
CSS Animatie是一款在线制作CSS3动画的工具,可以在线直接制作CSS3动画效果,生成代码 CSS Animatie 彩蛋爆料直击现场 CSS Animatie是一款在线制作CSS3动画的工 ...
随机推荐
- [转载]Spring Bean Configuration Inheritance
转自: http://www.mkyong.com/spring/spring-bean-configuration-inheritance/ In Spring, the inheritance i ...
- hdu 3661 Assignments(水题的解法)
题目 //最早看了有点云里雾里,看了解析才知道可以很简单的排序过 #include<stdio.h> #include<string.h> #include<algori ...
- UVA 133 The Dole Queue(报数问题)
题意:一个长度为N的循环队列,一个人从1号开始逆时针开始数数,第K个出列,一个人从第N个人开始顺时针数数,第M个出列,选到的两个人要同时出列(以不影响另一个人数数),选到同一个人就那个人出列. 思路: ...
- C# 在vs2010中打开vs2012的项目(转)
在vs2010中打开vs2012的项目 今天在自己的电脑上装了vs2010然后要打开之前在vs2012上创建的sln文件 被提示-- 无法打开在新版本上创建的sln--解决方案--文件 其实vs201 ...
- FileOutputStream和FileInputStream
package one.string; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFound ...
- 【tyvj】P1049 最长不下降子序列
时间: 1000ms / 空间: 131072KiB / Java类名: Main 描述 求最长不下降子序列的长度 输入格式 第一行为n,表示n个数 第二行n个数 输出格式 最长不下降子序列的长度 测 ...
- 对cost函数的概率解释
Likehood函数即似然函数,是概率统计中经常用到的一种函数,其原理网上很容易找到,这里就不讲了.这篇博文主要讲解Likelihood对回归模型的Probabilistic interpretati ...
- 【Linux高频命令专题(12)】touch.md
概述 一般在使用make的时候可能会用到,用来修改文件时间,或者新建一个不存在的文件. 命令格式 touch [选项]... 文件... 命令参数 -a 或--time=atime或--time=ac ...
- python 获取当前调用函数名等log信息
import sys funcName = sys._getframe().f_back.f_code.co_name #获取调用函数名 lineNumber = sys._getframe().f_ ...
- CSDN代码片排版
CSDN上发博文,尤其是有代码的,要用好“插入代码”功能(见下图).这是必须的,未来的IT程序员,需要用这种方式,展示出自己的代码.这是尊重读者,树立品牌的需要. 相关方法,参考见视频<发布第一 ...