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. Installation Install using yum ##Automatically...
Table of contents Scope Global Scope Function Sco...
The following is a bar chart using Flex layout: H...
How to display text overflow? What are your needs...
Cascading and Cascading Levels HTML elements are ...
Table of contents The first step of optimization:...
ScreenCloud is a great little app you didn’t even...
If you forget your MySQL login password, the solu...
In ordinary projects, I often encounter this prob...
Preface: When passing data between parent and chi...
We have introduced how to create a waterfall layo...
An n-digit verification code consisting of number...
There are many attributes in CSS. Some attributes...
Main library configuration 1. Configure mysql vim...
Overview In the previous chapter, we learned abou...