這篇文章主要介紹如何使用純CSS實現(xiàn)的win8開機(jī)加載的動畫特效,文中介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們一定要看完!
十年的三門網(wǎng)站建設(shè)經(jīng)驗,針對設(shè)計、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時及時工作處理。成都全網(wǎng)營銷推廣的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動調(diào)整三門建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計,從而大程度地提升瀏覽體驗。創(chuàng)新互聯(lián)從事“三門網(wǎng)站設(shè)計”,“三門網(wǎng)站推廣”以來,每個客戶項目都認(rèn)真落實執(zhí)行。
實現(xiàn)的代碼。
html代碼:
css3代碼:
body{
margin: 0;
padding: 0;
background-color: #90da15;
}
.wrapp{
position: absolute;
top: 50%;
left: 50%;
width: 600px;
height: 300px;
margin: -150px 0 0 -300px;
-webkit-perspective: 30px;
-webkit-transform: translateX(0px);
-webkit-animation: wrapp 400ms 800ms ease-in forwards;
-moz-perspective: 30px;
-moz-transform: translateX(0px);
-moz-animation: wrapp 400ms 800ms ease-in forwards;
-ms-perspective: 30px;
-ms-transform: translateX(0px);
-ms-animation: wrapp 400ms 800ms ease-in forwards;
perspective: 30px;
transform: translateX(0px);
animation: wrapp 400ms 800ms ease-in forwards;
}
.text{
position: absolute;
top: 50%;
left: 50%;
width: 0px;
height: 60px;
margin: -30px 0 0 -160px;
overflow: hidden;
-webkit-transform: translateX(0px);
-webkit-animation: text 400ms 800ms linear forwards;
-moz-transform: translateX(0px);
-moz-animation: text 400ms 800ms linear forwards;
-ms-transform: translateX(0px);
-ms-animation: text 400ms 800ms linear forwards;
transform: translateX(0px);
animation: text 400ms 800ms linear forwards;
}
h2{
float: right;
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
font-weight: normal;
color: #fff;
padding: 0;
margin: 0;
width: 320px;
height: 60px;
font-size: 60px;
line-height: 60px;
}
.logo{
position: absolute;
top: 50%;
left: 50%;
width: 90px;
height: 90px;
margin: -45px 0 0 -45px;
background-color: #fff;
-webkit-transform: translateX(0px) rotateY(10deg);
-webkit-animation: logo 500ms 300ms ease-out forwards;
-moz-transform: translateX(0px) rotateY(10deg);
-moz-animation: logo 500ms 300ms ease-out forwards;
-ms-transform: translateX(0px) rotateY(10deg);
-ms-animation: logo 500ms 300ms ease-out forwards;
transform: translateX(0px) rotateY(10deg);
animation: logo 500ms 300ms ease-out forwards;
}
.logo .top-left{
position: absolute;
top: 0;
left: 0;
width: 44px;
height: 44px;
border-right: solid 2px #90da15;
border-bottom: solid 2px #90da15;
}
.logo .bottom-right{
position: absolute;
bottom: 0;
right: 0;
width: 44px;
height: 44px;
border-left: solid 2px #90da15;
border-top: solid 2px #90da15;
}
@-webkit-keyframes logo {
from {
-webkit-transform: translateX(0px) rotateY(10deg);
}
to {
-webkit-transform: translateX(0px) rotateY(-10deg);
}
}
@-webkit-keyframes text {
from {
width: 0px;
-webkit-transform: translateX(0px);
}
60%{
width: 0px;
}
to {
width: 320px;
-webkit-transform: translateX(240px);
}
}
@-webkit-keyframes wrapp {
from {
-webkit-transform: translateX(0px);
}
to {
-webkit-transform: translateX(-200px);
}
}
@-moz-keyframes logo {
from {
-moz-transform: translateX(0px) rotateY(10deg);
}
to {
-moz-transform: translateX(0px) rotateY(-10deg);
}
}
@-moz-keyframes text {
from {
width: 0px;
-moz-transform: translateX(0px);
}
60%{
width: 0px;
}
to {
width: 320px;
-moz-transform: translateX(240px);
}
}
@-moz-keyframes wrapp {
from {
-moz-transform: translateX(0px);
}
to {
-moz-transform: translateX(-200px);
}
}
@-ms-keyframes logo {
from {
-ms-transform: translateX(0px) rotateY(10deg);
}
to {
-ms-transform: translateX(0px) rotateY(-10deg);
}
}
@-ms-keyframes text {
from {
width: 0px;
-ms-transform: translateX(0px);
}
60%{
width: 0px;
}
to {
width: 320px;
-ms-transform: translateX(240px);
}
}
@-ms-keyframes wrapp {
from {
-ms-transform: translateX(0px);
}
to {
-ms-transform: translateX(-200px);
}
}
@keyframes logo {
from {
transform: translateX(0px) rotateY(10deg);
}
to {
transform: translateX(0px) rotateY(-10deg);
}
}
@keyframes text {
from {
width: 0px;
transform: translateX(0px);
}
60%{
width: 0px;
}
to {
width: 320px;
transform: translateX(240px);
}
}
@keyframes wrapp {
from {
transform: translateX(0px);
}
to {
transform: translateX(-200px);
}
}
以上是“如何使用純CSS實現(xiàn)的win8開機(jī)加載的動畫特效”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!