css3动画特效:纯css3制作win8加载动画特效

简介:

Windows 8

 
完整效果如上图;这个里面可能是css冲突,喜欢的可以自己去体征一下;
 
css特效代码:
复制代码
<style type="text/css">
.hnyei{margin: 0 auto; width:600px; height:400px; background-color: #90da15; }
.wrapp{position: absolute;    top: 25%;    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: 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);}
}
</style>
复制代码

Html 部分:

复制代码
<div class="hnyei">
    <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>
</div>
复制代码

 本文转自寒意博客园博客,原文链接:http://www.cnblogs.com/hnyei/p/4621115.html,如需转载请自行联系原作者

相关文章
|
4天前
css3 svg制作404页面动画效果HTML源码
css3 svg制作404页面动画效果HTML源码
58 34
|
20天前
jQuery+CSS3实现404背景游戏动画源码
jQuery+CSS3实现404背景游戏动画源码
49 22
|
2月前
纯css3实现的百分比渐变进度条加载动画源码
纯css3实现的百分比渐变进度条加载动画特效源码
65 31
|
1月前
|
Web App开发 移动开发 JavaScript
纯CSS3+SVG实现的节日庆祝五彩纸屑动画效果源码
这是一款基于纯CSS3+SVG实现的节日庆祝五彩纸屑动画效果源码。画面中左下角是一个圆锥形礼炮卡通效果,呈现出节日庆祝时礼花爆破、五彩纸屑纷飞的动画特效。整体动画效果采用纯css3+svg实现,没有引入任何外部图形或js脚本元素。建议使用支持HTML5与css3效果较好的火狐(Firefox)或谷歌(Chrome)等浏览器预览本源码。
58 6
|
2月前
|
前端开发 JavaScript UED
CSS滚动效果和视差滚动的原理、应用及其对用户体验的影响。从平滑滚动到元素跟随,再到滚动触发动画
本文探讨了CSS滚动效果和视差滚动的原理、应用及其对用户体验的影响。从平滑滚动到元素跟随,再到滚动触发动画,这些效果增强了页面的吸引力和互动性。视差滚动通过不同层次元素的差异化移动,增加了页面的深度感和沉浸感。文章还讨论了实现方法、性能优化及案例分析,旨在为设计师和开发者提供实用指导。
87 7
|
2月前
|
前端开发 UED 开发者
CSS Sprites和图标字体在网页图标加载优化中的应用。CSS Sprites通过合并多图标减少HTTP请求,提升加载速度
本文探讨了CSS Sprites和图标字体在网页图标加载优化中的应用。CSS Sprites通过合并多图标减少HTTP请求,提升加载速度;图标字体则以字体形式呈现图标,便于调整样式。文章分析了两者的优缺点及应用场景,并提供了应用技巧和注意事项,旨在帮助开发者提升页面性能,改善用户体验。
42 5
|
2月前
CSS3制作的聚光灯下倒影文字选装动画特效源码
CSS3聚光灯下倒影文字特效是一段基于CSS3实现的聚光灯下带倒影的文字旋转动画效果代码,具有真实的视觉感,同时文字还会在旋转过程中显示出灯光的反射效果,很有意思,欢迎对此段代码感兴趣的朋友前来下载使用。
36 6
|
2月前
纯css3加载loading发光变色动画代码
纯css3加载loading发光变色动画特效代码是一款基于css3 keyframes属性实现的发光变色圆点串联旋转loading加载动画
30 2

热门文章

最新文章