1. CSS3 animation ☺CSS3 animations are much easier and perform better than dynamically changing element styles via JavaScript. There are three animation properties in CSS3: .transform-class { transform: rotate(30deg) scale(2,3); } 1.1. transform-origin base point All transformations are based on the base point, which defaults to the center point of the element. Usage: .transform-class { transform-origin: (left, bottom); } 1.2. rotate rotates the element by the specified angle. If it is a positive number, it rotates clockwise, and if it is a negative number, it rotates counterclockwise. .transform-rotate { transform: rotate(30deg); } 1.3. Scale .transform-scale { transform: scale(2,1.5); } .transform-scaleX { transform: scaleX(2); } .transform-scaleY { transform: scaleY(1.5); } 1.4. Translate .transform-translate { transform: translate(400px, 20px); } .transform-translateX { transform: translateX(300px); } .transform-translateY { transform: translateY(20px); } 1.5. Skew distortion .transform-skew { transform: skew(30deg, 10deg); } .transform-skewX { transform: skewX(30deg); } .transform-skewY { transform: skewY(10deg); } 1.6, matrix
3. animation
example: @keyframes animationName { from { properties: value; } percentage properties: value; } to { properties: value; } } //or @keyframes animationName { 0% { properties: value; } percentage properties: value; } 100% { properties: value; } } 2. New Features of H5
Form controls: calendar, date, time, email, url, search. ( This is the end of this article about CSS3 animation and HTML5 new features. For more relevant CSS3 animation and HTML5 new features content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: Looping methods and various traversal methods in js
>>: Sample code for implementing multi-application deployment using tomcat+nginx
Preface MySQL slow query log is a function that w...
Table of contents 1. Introduction 2. es5 method 3...
This article uses examples to explain the knowled...
Introduction EXISTS is used to check whether a su...
The previous article introduced the MySql multi-c...
There is currently a requirement that an operatio...
Recently, after refreshing the website, 503 Servi...
The notepad program is implemented using the thre...
A web server can build multiple web sites with in...
...It's like this, today I was going to make a...
Preface This article analyzes the process of shut...
Preface Every developer who comes into contact wi...
Table of contents Pull the image Run the image (g...
Preface With the crazy speculation of virtual cur...
What is a Port? The ports we usually refer to are...