html keyframes

<!DOCTYPE html>  
<html>
<head>  
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>Hello, World</title>  
<style type="text/css">
html{height:100%}  
body{height:100%;margin:0px;padding:0px}  
#container{height:100%}

@keyframes myfirst
{
    10%  {transform :scale(1);}
    100% {transform :scale(8);}
}

@keyframes action_skew{
    0%{opacity: 0;}
    50%{ opacity: 0.2;}
    100%{ opacity: 1;}
}

.realdata{
    font-size:10px;
    color:#669A58;
}
</style>  

</head>  
 
<body>  

<div class="content" id="content">
<div class="one" style="width:4px;height:4px;background-color:red;border: 6px #009FD9 solid;border-radius:50%;margin:10px;position: relative;">
<p style="position: absolute;width:4px;height:4px;border-radius:50%;box-shadow: 0px 0px 1px #009FD9;animation: myfirst 1.5s  infinite;margin: 0px;"></p>
<span style="position: absolute;width:10px;height:10px; border-radius:50%;box-shadow: 0px 0px 1px #009FD9;animation: myfirst 1.5s  infinite;margin: 0px;animation-delay: 0.8s;"></span>

</div>
</div>

<div id="container"></div>
<script type="text/javascript" src="/assets/js/mapdata2.js"></script>
</body>  
</html>

aaa.html

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<style type="text/css">
.line {
    stroke-width: 4px;
    stroke: red;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: move 2s;
}

@keyframes move {
    to {
        stroke-dashoffset: 0;
    }
}
</style>
<svg
    style="background:#007fff"
    xmlns="http://www.w3.org/2000/svg"
    version="1.1"
    <!-- viewBox定义-->
    viewBox="0, 0, 50, 50"
    width="300"
    height="300" >
    <circle cx="10" cy="10" r="49" stroke="black"
    stroke-width="1" fill="red" />
    
    <rect width="100" height="100" x="20" y="20" rx="30" ry="30" style="fill:rgb(255,255,0);stroke-width:4;
            stroke:rgb(0,0,0);fill-opacity: .6;stroke-opacity: .5;" />
    <path d="M0 100 H400" class="line"></path>
</svg>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值