animation Define an animation: /*Set a keyframe to define the action performed at each step of the animation*/ @keyframes mybox{ 0%{transform: translate(0,0);} 25%{transform: translate(200px,0);} 50%{transform: translate(200px,200px);} 75%{transform: translate(0,200px);} 100%{transform: translate(0,0);} } /*Reference keyframes and set the execution style of the animation*/ animation: mybox 5s 1s infinite; Note:
animation-name: the name of the animation (must exist) animation-duration: the duration of the animation animation-delay: specifies how long it takes for the animation effect to appear animation-iteration-count: defines the number of times the animation is executed
animation-timing-function: defines the animation effect animation-fill-mode: none: default value; the style takes effect after a delay; Summarize This is the end of this article about the commonly used styles of CSS animation effects. For more content about commonly used styles of CSS animation, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope that everyone will support 123WORDPRESS.COM in the future! |
<<: VUE render function usage and detailed explanation
>>: zabbix custom monitoring nginx status implementation process
1. Getting started with setUp Briefly introduce t...
Table of contents background analyze method backg...
Table of contents Table definition auto-increment...
Official documentation: JSON Functions Name Descr...
Use CSS filter to write mouse over effect <div...
Preface Under Linux, compilation and linking requ...
Relative path - a directory path established based...
Find the problem After upgrading MySQL to MySQL 5...
Basic preparation For this implementation, we nee...
1. Initialize data DROP TABLE IF EXISTS `test_01`...
Table of contents Preface What is Deno? Compariso...
After I analyzed the Taobao details page last time...
Step 1: View the current kernel rew $ uname -a Li...
Grid layout Attributes added to the parent elemen...
On the server, in order to quickly log in to the ...