Animate properties in CSS

Source: Internet
Author: User

I remember using animation directly at work, as long as I was able to animate it, and never looked at every detail.
In fact, for us to do so, there is no mistake, because there is no time for the work to show you every detail, roughly read an article is not below.
when we want to get things sorted out, I think about every single point of knowledge I've seen before, but it's no mistake to do so, but it's obviously not a wise choice.
I think do one thing, have a plan, only plan well, do not know the mark good, behind slowly one to solve, will not fall down the point of study, good, don't say, want to sleep
Animation-name indicates the name of the @keyframes animation;
syntax: animation-name:keyframename|none;
Animation-duration indicates the time required for the animation to complete a cycle;
syntax: animation-duration:time;
animation-timing-function indicates the speed of the specified animation;
syntax: animation-timing-function:value;
What is value: linear, ease, ease-in, Ease-out, Ease-in-out, Cubic-bezier (n,n,n,n);
Animation-fill-mode indicates the fill mode;
Syntax: Animation-fill-mode:none | forwards | backwards | both;
Nimation-delay indicates that the animation is about to begin.
syntax: animation-delay:time;
Animation-iteration-count indicates the number of times the animation is played;
syntax: Animation-iteration-count:n|infinite (infinite loop);
animation-direction means to repeat the animation once, or to move and repeat it back and forth.
syntax: animation-direction:normal|alternate;
animation:name Duration timing-function delay iteration-count direction;
<!--reference learning http://www.w3school.com.cn/cssref/pr_animation.asp

<style>
body{
Background-color:rgba (31,11,71,.8)
}
. circle{
Position:absolute;
left:46%;
top:30%;
width:20px;
height:20px;
border-radius:15px;
Background-color:rgba (21,21,29,.7);
-webkit-animation:myname 2s linear infinite;
Animation:myname 7s linear Infinite;
}
@keyframes MyName {
0% {
left:46%;
top:30%;
}

25% {
left:56%;
top:20%;
}

50% {
left:66%;
top:40%;
}

75% {
left:56%;
top:60%;
}

100% {
left:46%;
top:30%;
}
}
@-webkit-keyframes MyName {
0% {
left:46%;
top:30%;
}

25% {
left:56%;
top:20%;
}

50% {
left:66%;
top:40%;
}

75% {
left:56%;
top:60%;
}

100% {
left:46%;
top:30%;
}
}
h1{
Animation-fill-mode:forwards;
-webkit-animation-fill-mode:forwards;
}
</style>
<body>
<div class= "Circle" ></div>
</body>

Animate properties in CSS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.