清风细雨楼 Design By www.eepep.com
今天给大家分享一款纯css3实现的win8加载动画。在这款实例中动画效果完全由css3实现。一起看下效果图:
实现的代码。
html代码:
XML/HTML Code复制内容到剪贴板- <div class="wrapp">
- <div class="text">
- <h1>
- Windows 8</h1>
- </div>
- <div class="logo">
- <span class="top-left"></span><span class="bottom-right"></span>
- </div>
- </div>
css3代码:
CSS Code复制内容到剪贴板- 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;
- }
- h1{
- float: rightright;
- 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 .bottombottom-rightright{
- position: absolute;
- bottombottom: 0;
- rightright: 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);
- }
- }
清风细雨楼 Design By www.eepep.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
清风细雨楼 Design By www.eepep.com
暂无评论...
更新日志
2024年12月25日
2024年12月25日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]