Css jitter and css Jitter

Source: Internet
Author: User

Css jitter and css Jitter


<! Doctype html>

<Html lang = "en">
<Head>
<Meta charset = "UTF-8">
<Tilte> Document </title>
<Style>
@-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 );
}
}
# Buzz {
Width: 1000px;
Height: 400px;
Margin: 200px;
Background: # eee1e1;
Position: relative;
}
# Buzz: hover {
-Webkit-animation-name: buzz-out;
-Webkit-animation-duration: 1 s;
-Webkit-animation-timing-function: linear;
-Webkit-animation-iteration-count: 100;
}


</Style>
</Head>
<Body>
<Div id = "buzz">
<P> </p>
</Div>
</Body>

</Html>


The above is the code.

Related attributes: animation

Animation-name: Specifies the keyframe name to be bound to the selector.

Animation-duration: specifies the time in seconds or milliseconds

Animation-timing-fuction: Specifies the animation speed curve

Animation-delay: Specifies the delay before the start

Animation-iteration-count: specifies the number of times the animation should be played

Animation-direction: Specifies whether an animation should be played in turn in reverse playback.

@-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 );
}
}

The jitter amplitude can be set here.

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.