玩一个动态CSS 复制到页面直接运行
来源:互联网 发布:淘宝代付退款几天到账 编辑:程序博客网 时间:2024/06/03 17:28
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<div class="box">
<h1>hello my zone</h1>
</div>
<style>
.box{
width: 150px;
height: 100px;
background:red;
position:relative;
animation-name:myfirst;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
/* Firefox: */
-moz-animation-name:myfirst;
-moz-animation-duration:5s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
/* Safari and Chrome: */
-webkit-animation-name:myfirst;
-webkit-animation-duration:5s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
/* Opera: */
-o-animation-name:myfirst;
-o-animation-duration:5s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
}
h1{
font-size: 20px;
color: chartreuse;
animation-name:mysecond;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
/* Firefox: */
-moz-animation-name:mysecond;
-moz-animation-duration:5s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
/* Safari and Chrome: */
-webkit-animation-name:mysecond;
-webkit-animation-duration:5s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
/* Opera: */
-o-animation-name:mysecond;
-o-animation-duration:5s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
}
@keyframes mysecond{
0% {font-size: 10px; color: black;}
25% {font-size: 20px;color:aliceblue;}
50% {font-size: 30px;color:cyan;}
75% {font-size: 20px;color:darkmagenta;}
100% {font-size: 10px;color:darkmagenta;}
}
@keyframes myfirst
{
0% {background:red; left:0px; top:0px;font-size: 10px; color: black;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;color:aliceblue;}
50% {background:blue; left:200px; top:200px;font-size: 30px;color:cyan;}
75% {background:green; left:0px; top:200px;font-size: 20px;color:darkmagenta;}
100% {background:red; left:0px; top:0px;font-size: 10px;color:darkmagenta;}
}
@-moz-keyframes myfirst /* Firefox */
{
0% {background:red; left:0px; top:0px;font-size: 10px;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;}
50% {background:blue; left:200px; top:200px;font-size: 30px;}
75% {background:green; left:0px; top:200px;font-size: 20px;}
100% {background:red; left:0px; top:0px;font-size: 10px;}
}
@-webkit-keyframes myfirst /* Safari and Chrome */
{
0% {background:red; left:0px; top:0px;font-size: 10px;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;}
50% {background:blue; left:200px; top:200px;font-size: 30px;}
75% {background:green; left:0px; top:200px;font-size: 20px;}
100% {background:red; left:0px; top:0px;font-size: 10px;}
}
@-o-keyframes myfirst /* Opera */
{
0% {background:red; left:0px; top:0px;font-size: 10px;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;}
50% {background:blue; left:200px; top:200px;font-size: 30px;}
75% {background:green; left:0px; top:200px;font-size: 20px;}
100% {background:red; left:0px; top:0px;font-size: 10px;}
}
</style>
<script type="text/javascript" id="c_n_script" src="//cdn.sojson.com/js/common/canvas-nest.min.js" color="22,22,22" opacity="0.5" zindex="-2" count="200"></script>
</body>
</html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<div class="box">
<h1>hello my zone</h1>
</div>
<style>
.box{
width: 150px;
height: 100px;
background:red;
position:relative;
animation-name:myfirst;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
/* Firefox: */
-moz-animation-name:myfirst;
-moz-animation-duration:5s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
/* Safari and Chrome: */
-webkit-animation-name:myfirst;
-webkit-animation-duration:5s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
/* Opera: */
-o-animation-name:myfirst;
-o-animation-duration:5s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
}
h1{
font-size: 20px;
color: chartreuse;
animation-name:mysecond;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
/* Firefox: */
-moz-animation-name:mysecond;
-moz-animation-duration:5s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
/* Safari and Chrome: */
-webkit-animation-name:mysecond;
-webkit-animation-duration:5s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
/* Opera: */
-o-animation-name:mysecond;
-o-animation-duration:5s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
}
@keyframes mysecond{
0% {font-size: 10px; color: black;}
25% {font-size: 20px;color:aliceblue;}
50% {font-size: 30px;color:cyan;}
75% {font-size: 20px;color:darkmagenta;}
100% {font-size: 10px;color:darkmagenta;}
}
@keyframes myfirst
{
0% {background:red; left:0px; top:0px;font-size: 10px; color: black;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;color:aliceblue;}
50% {background:blue; left:200px; top:200px;font-size: 30px;color:cyan;}
75% {background:green; left:0px; top:200px;font-size: 20px;color:darkmagenta;}
100% {background:red; left:0px; top:0px;font-size: 10px;color:darkmagenta;}
}
@-moz-keyframes myfirst /* Firefox */
{
0% {background:red; left:0px; top:0px;font-size: 10px;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;}
50% {background:blue; left:200px; top:200px;font-size: 30px;}
75% {background:green; left:0px; top:200px;font-size: 20px;}
100% {background:red; left:0px; top:0px;font-size: 10px;}
}
@-webkit-keyframes myfirst /* Safari and Chrome */
{
0% {background:red; left:0px; top:0px;font-size: 10px;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;}
50% {background:blue; left:200px; top:200px;font-size: 30px;}
75% {background:green; left:0px; top:200px;font-size: 20px;}
100% {background:red; left:0px; top:0px;font-size: 10px;}
}
@-o-keyframes myfirst /* Opera */
{
0% {background:red; left:0px; top:0px;font-size: 10px;}
25% {background:yellow; left:200px; top:0px;font-size: 20px;}
50% {background:blue; left:200px; top:200px;font-size: 30px;}
75% {background:green; left:0px; top:200px;font-size: 20px;}
100% {background:red; left:0px; top:0px;font-size: 10px;}
}
</style>
<script type="text/javascript" id="c_n_script" src="//cdn.sojson.com/js/common/canvas-nest.min.js" color="22,22,22" opacity="0.5" zindex="-2" count="200"></script>
</body>
</html>
阅读全文
0 0
- 玩一个动态CSS 复制到页面直接运行
- javascript/CSS代码直接运行调试页面
- JSP页面验证码源码,直接复制到页面使用
- js中直接跳转到一个页面的方法
- 动态把一个databale复制到另一个databale
- 直接复制php的安装目录部署到其他服务器的时候,无法运行
- c语言把一个数组里面的部分值直接复制到另外一个数组
- 页面禁止复制css实现
- 在 Visual C# 中直接将一个图片从数据库复制到 PictureBox 控件
- HOW TO:在 Visual C# 中直接将一个图片从数据库复制到 PictureBox 控件
- 直接导出页面到Excel
- listview+checkbox 在一个页面点击checkbox,滑动到另一个页面也有 listview条目复制
- 自己做的一个游戏 先不要看程序 想玩的自己复制粘贴运行 不然就没意思了
- myeclipse中直接复制项目不能直接运行的解决方案
- html+css正常但是复制到aspx页面出现布局混乱的问题
- 将一个栏目下的内容复制到另外一个栏目下的jsp页面
- 在文件管理器剪切到一个文件到相同的路径下,直接变成了复制功能
- Python最全的字符和字符串函数,直接复制到IDLE或另存为py可以运行
- Apache Kylin: OOPS!Failed to Take Actions
- Phoenix 二级索引之— —Global Indexing
- 小米note2 二个微信同时工作
- ssh端口修改无法连接
- 聚类
- 玩一个动态CSS 复制到页面直接运行
- SQL优化
- linux下安装mysql5.7
- 剑指Offer-13
- SVN(Cornerstone)-添加忽略文件
- 基于第三方Json数据的hive映射表
- 电子技术专业基础与实务(中级)考试经验
- 假定参考解码器(HRD)及它如何用来检查比特流与解码器一致性
- iOS开发 GET、POST 请求方法