文字飞入

文字飞入(刚进入页面时)

<!doctype html>  
<html lang="en">  
<head>  
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">  
<meta name='apple-mobile-web-app-capable' content='yes' />  
<meta name="format-detection" content="telephone=no" />  
<meta http-equiv='Content-Type' content='textml;charset=UTF-8' />  
  <style>  
/* Demo Styles */  
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,form,input,table,tbody,p,th,td{ -webkit-text-size-adjust:none; margin: 0; padding: 0; border: none; -webkit-tap-highlight-color:rgba(0,0,0,0); font-size: 1em; font-family:"Microsoft Yahei","微软雅黑",Tahoma,Arial,Helvetica ,STHeiti; color: #4c4948; }  
html,body{ min-height:100%; }  
img,input,button,a,select,textarea{ margin: 0; padding: 0; resize:none; border:none; outline:none; }   
ol,ul { list-style:none; }   
h1,h2,h3,h4,h5,h6,p,em{ font-size:100%; word-wrap:break-word; font-weight: normal; font-style: normal; }  
a:active, a:focus{ outline:none; }  
button::-moz-focus-inner,input::-moz-focus-inner{ padding:0; border:0; }  
table{ border-collapse:collapse; border-spacing:0; }  
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; font-size:0; }  
.clearfix{ zoom:1; }  
a{ color: #4c4948; text-decoration: none; }  
   
   
.img{ width: 190px; height: 120px; padding: 3px; border: 1px solid #ccc; position: absolute;z-index: 12; top: 50px; left: 50%;  
 margin-left: -95px; }  
 /*动画名字, 动画运行的时间,alternate平滑过渡, infinite是反复执行*/  
 .imgAnimation{  
      animation-name: imgAnimation;  
      animation: imgAnimation 2s alternate;  
      -webkit-animation: imgAnimation 2s alternate ;  
      -moz-animation: imgAnimation 2s alternate infinite;  
 }  
@keyframes theanimationTiyan{
  0% {right:-200px;}
  100% {right:0px;}
}
@-webkit-keyframes theanimationTiyan{
  0% {right:-200px;}
  100% {right:0px;}
}
@-moz-keyframes theanimationTiyan{
  0% {right:-200px;}
  100% {right:0px;}
}
@-o-keyframes theanimationTiyan{
  0% {right:-200px;}
  100% {right:0px;}
}
@-ms-keyframes theanimationTiyan{
  0% {right:-200px;}
  100% {right:0px;}
}       /* 兼容 */
@-webkit-keyframes imgAnimation{  
    0%{ left: -198px;top:500px;}  
    100%{ top: 50px; left: 50%;  
 margin-left: -95px;}  
 }  
 </style>  
</head>  
<body>  
     
     <div class="img imgAnimation"> 文字飞入 </div>  
       
</body>  
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值