AI编程助手
AI免费问答

详解在HTML中实现动画的方法代码

高洛峰   2017-03-23 09:57   3200浏览 原创

 Animation功能中实现动画的方法

详解在HTML中实现动画的方法代码

nbsp;html PUBLIC “-//W3C//DTD XHTML1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<htmlxmlns><meta>
<title>实现动画的各种方法的比较示例</title>
<styletype>
@keyframesmycolor{
            0%{
                        width:100px;
                        height:100px;
            }
            100%{
                        width:500px;
                        height:500px;
            }
}
div{
            background-color:red;
            width:500px;
            height:500px;
            animation-name:mycolor;
            animation-duration:5s;
            animation-timing-function:ease-out;
}


<div>
</div>

</styletype></htmlxmlns>

前端入门到VUE实战笔记:立即学习
>在学习笔记中,你将探索 前端 的入门与实战技巧!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。