css抖动基础_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:47:42
Original
923 people have browsed it




   
    Document
       


   

       


   
 


以上是代码。

有关属性:animation

animation-name:规定需要绑定到选择器keyframe名称

animation-duration:规定花费的时间以秒或毫秒记

animation-timing-fuction:规定动画速度曲线

animation-delay:规定开始之前的延迟

animation-iteration-count:规定动画应播放的次数

animation-direction:规定是否应该轮流反向播放动画

 @-webkit-keyframes buzz-out{
            0%{
                -webkit-transform:translateX(10px)rotate(20deg);
            }
            30%{
                -webkit-transform:tranalateX(-10px)rotate(-20deg);


            }
            60%{
                -webkit-transform:translateX(30px)rotate(50deg);
            }
            100%{
                 -webkit-transform:translateX(-30px)rotate(-50deg);
            }
        }

这里可以设置抖动的幅度

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!