CSS3 Quick Review

Source: Internet
Author: User

Selector Selector
Borders, Shadows
border-radius:50%; Set Positive Circle
Changes in the background
CSS3 Important new things:
transition
Excessive, let an element from one style, to another style, no longer is a dry jump, but there is animation, even finish.
The Transition property is written to the original style of the element,
Transition: Whether to excessive CSS properties when the length is constant speed delay;
For example: transition:all 1s ease 0s; if you want to be constant, write linear

When can the transition attribute be triggered??
: hover can trigger transitions
JS Direct control elements of the style change, will also trigger the transition
JS Control plus a class name will also trigger a transition
★ Summary: All can make the element CSS change behavior, all can trigger the transition.

What properties can the transition attribute transition to?
Basically all the attributes, transition can transition.
Transform
Deformation. In fact, it's about having an element with a "dimension."

Transform:rotatey ( -40deg) Rotatex ( -40deg) Translatez (300px);
Let a box rotate around the y-axis-40 degrees, rotate around the x-axis-40 degrees, and move forward 300px in the direction that you are now in.

Animation
CSS3,: Hover can give any label settings, indicating the mouse hover style.
Animation. Unlike transition, this animation does not require a trigger condition and can move itself.
Animation:name Duration timing-function delay iteration-count direction;
Call:
animation:tiao 1s ease 0s infinite alternate;

/* Defining animations */ @-webkit-keyframes Tiao {from{top:200px;}  {top:250px;} }

Curve motion
The jquery animate does not complete the curve movement, it must be done by using a plug-in.
Jquery.path.js
Path is the route

CSS3 Quick Review

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.