CSS3 Example Tutorial: CSS3 's transition

Source: Internet
Author: User
Tags end

Article Introduction: believe for many beginners, for CSS3 transition in the end is directly written on the selector, or write on the hover of the selector to express doubts, the following gives two examples, I hope you can dispel doubts.

Believe for many beginners, for CSS3 transition in the end is directly written on the selector, or write on the hover of the selector to express doubts, the following Web teaching network to give two examples, Web teaching network hope you can dispel doubts.

<div id= "Demo1" class= "demo" >demo1</div> <div id= "Demo2" class= "Demo" >demo2</div>
. demo{width:100px; 	height:100px; 	Text-align:center; 	line-height:100px; 	border:10px solid #ccc; 	border-radius:60px; 	font-size:20px; -webkit-backface-visibility:hidden; 	} #demo1 {-webkit-transition:border-color 0.3s ease; 	-moz-transition:border-color 0.3s Ease; 	-ms-transition:border-color 0.3s Ease; 	-o-transition:border-color 0.3s Ease; Transition:border-color 0.3s Ease; 	#demo1: hover{border-color: #A3D7FF;} #demo2 {-webkit-transition:all 1s ease; 	-moz-transition:all 1s ease; 	-ms-transition:all 1s ease; 	-o-transition:all 1s ease; Transition:all 1s ease; 	#demo2: hover{background-color: #A3D7FF; 	-webkit-transform:rotate (360DEG); 	-moz-transform:rotate (360DEG); 	-ms-transform:rotate (360DEG); 	-o-transform:rotate (360DEG); 	Transform:rotate (360DEG); 	-webkit-transition:background-color 0.3s Ease; 	-moz-transition:background-color 0.3s Ease; 	-ms-transition:background-color 0.3s Ease; 	-o-transition:background-color 0.3s Ease; Transition:background-color 0.3s Ease }


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.