Home > Web Front-end > HTML Tutorial > Create animations in web pages

Create animations in web pages

阿神
Release: 2016-11-08 14:37:47
Original
1800 people have browsed it

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css">
        @-webkit-keyframes &#39;fkf&#39;
        {
            from {
                width:500px;
                height: 500px;
                background-color:#ff0000;
 
                }
            to
             {
            width:500px;
            height: 500px;
            background-color: #00ff00;
            margin-left: 800px;
 
 
             }
        }
        .table1 {
            width: 500px;
            height: 500px;
            -webkit-animation-name: &#39;fkf&#39;;
            -webkit-animation-duration: 5s;
            -webkit-animation-iteration-count:10000;
            }
 
    </style>
</head>
<body>
  <div class="table1"></div>
</body>
</html>
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template