惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

博客园 - 魔豆

oracle中使用unpivot实现列转行 推荐一个可以下载B站视频的工具 学习qt,做了一个小应用:随机点名提问系统 hadoop的eclipse插件 mysql5.5安装到最后一步卡死无响应的解决方法 Hbase各版本支持情况 Comparable接口的使用 HTML5中使用EventSource实现服务器发送事件 HTML5中的Web Worker技术 css3中的盒子模型 使用visual studio code运行html 【转】解决chrome浏览器不支持audio和video标签的autoplay自动播放 spring mvc中添加对Thymeleaf的支持 Eclipse安装代码反编译插件Enhanced Class Decompiler 使用idea创建web项目 shell编程学习笔记(十二):Shell中的break/continue跳出循环 shell编程学习笔记(十一):Shell中的while/until循环 shell编程学习笔记(十):Shell中的for循环 shell编程学习笔记(九):Shell中的case条件判断
css3实现动画效果
魔豆 · 2019-05-31 · via 博客园 - 魔豆

示例:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>css3动画</title>
<style>
.div1 {
    position:relative;
    width:500px;
    height:200px;
    background-color:black;
    animation:mydh 10s infinite;
    -webkit-animation:mydh 10s infinite;
}

@keyframes mydh {
    0% {background:red;left:0px;top:0;}
    50% {background:blue;left:100px;top:200px;}
    100% {background:red;left:0px;top:0;}
}

@-webkit-keyframes mydh {
    0% {background:red;left:0px;top:0;}
    50% {background:blue;left:100px;top:200px;}
    100% {background:red;left:200px;top:0;}    
}
</style>
</head>

<body>
<div class="div1"></div>
</body>
</html>

posted @ 2019-05-31 09:21  魔豆  阅读(503)  评论()    收藏  举报