Cool CSS3 jitter style: CSS Shake

Source: Internet
Author: User

CSS Shake is an animated style implemented using CSS3, written using sass, which allows us to implement a variety of different styles of jitter effects (such as the following GIF image):

Cool CSS3 jitter style: CSS Shake

This is a very small animation, but it is very good to use, such as ads, images, buttons, so that can be used to attract the user's eye so as to push to click on it.

This csshake has 9 jitter styles, three states, such as a mouse pull, infinite jitter, mouse hover pull.

How to use CSS Shake:

First, the CSS Shake style sheet file is introduced.
CSS3 button:? http://www.huiyi8.com/css3/anniu/
Add the Shake class style to your DOM element. Jitter style, altogether 9 kinds, can see the effect of the demo to add the CSS you want.

In addition I can pass. Freeze,. Shake-constant &. Hover-stop to control the state, you can try the effect!

Note: Sass is a front-end CSS framework that extends the CSS3, adding rules, variables, mixes, selectors, inheritance, and more. Sass is a CSS development tool to generate well-formatted CSS code, and also provides a lot of convenient wording, greatly saving the designer time, make CSS development, become simple and maintainable. Sass is written in the Ruby language, but the syntax of the two is not related. If you don't know Ruby, you'll still use it. Just have to install Ruby before installing sass.

Demo Please see: http://elrumordelaluz.github.io/csshake/

1. [Image] Css-shake-demo.gif

2. [Code] first introduced the CSS Shake style sheet file.
<link type= "Text/css" href= "Csshake.css" >
3. [Code] jitter style
<div class= "Shake" ></div>
<div class= "Shake Shake-hard" ></div>
<div class= "Shake Shake-slow" ></div>
<div class= "Shake Shake-little" ></div>
<div class= "Shake Shake-horizontal" ></div>
<div class= "Shake Shake.vertical" ></div>
<div class= "Shake Shake-rotate" ></div>
<div class= "Shake Shake-opacity" ></div>
<div class= "Shake Shake-crazy" ></div>

Cool CSS3 jitter style: CSS Shake

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.