animation composite properties. Retrieves or sets the animation effects applied to the object.
If there are multiple attribute values separated by ",", it applies to all elements, including pseudo objects :after and :before
1.animation-name Retrieve or set the animation name applied to the object
Must be used in conjunction with the rule @keyframes, eg:@keyframes animations animation-name:animations;
2.animation-duration Retrieve or set the duration of the object animation
animation-duration:3s; Animation completed The time used is 3s
3.animation-timing-function Retrieve or set the transition type of object animation
linear: linear transition. Equivalent to Bezier curve (0.0, 0.0, 1.0, 1.0)
ease: smooth transition. Equivalent to Bezier curve (0.25, 0.1, 0.25, 1.0)
ease-in: from slow to fast. Equivalent to Bezier curve (0.42, 0, 1.0, 1.0)
ease-out: from fast to slow. Equivalent to Bezier curve (0, 0, 0.58, 1.0)
ease-in-out: from slow to fast and then to slow. Equivalent to Bezier curve (0.42, 0, 0.58, 1.0)
step-start: Equivalent to steps(1, start)
step-end: Equivalent to steps(1, end )
steps(integer>[, [ start | end ] ]?): A step function that accepts two parameters. The first parameter must be a positive integer specifying the number of steps of the function. The value of the second parameter can be start or end, specifying the time point when the value of each step changes. The second parameter is optional and the default value is end.
cubic-bezier(
4.animation-delay Retrieve or set the object animation delay time
animation-delay:0.5s; The delay time before the animation starts is 0.5s
5.animation-iteration-count Retrieve or set the cyclenumber of times
animation -iteration-count: infinite | number;
infinite: infinite loop
number: number of loops
6.animation-direction Retrieve or set the object animation Whether to move in the reverse direction during the loop
normal: normal direction
reverse: run in the reverse direction
alternate: the animation runs normally and then in the reverse direction, and continues to alternate Run
alternate-reverse: The animation first runs in the reverse direction and then runs in the forward direction, and continues to run alternately
7.animation-play-state Retrieve or set the state of the object animation
animation-play-state:running | paused;
running:motion
paused: pause
animation-play-state:paused; When the mouse The animation stops when it passes, and the animation continues when the mouse moves away
8.animation-fill-mode Retrieve or set the state of the object outside the animation time
none: default value , do not set the state of the object outside of the animation
forwards: Set the object state to the state at the end of the animation
backwards: Set the object state to the state at the beginning of the animation
both :Set the object state to the state when the animation starts or ends
[Related recommendations]
1. Detailed introduction to the animation-direction attribute in CSS3
2. Share an example of monitoring the css3 animation (animation) end event
3. Use the animation attribute to implement delayed execution between loops tutorial
4. Detailed explanation of the two pause methods (transition, animation) in css3
The above is the detailed content of 8 properties of CSS3 animation (Animation) that you must master. For more information, please follow other related articles on the PHP Chinese website!

In this post, Blackle Mori shows you a few of the hacks found while trying to push the limits of Cohost’s HTML support. Use these if you dare, lest you too get labelled a CSS criminal.

Custom cursors with CSS are great, but we can take things to the next level with JavaScript. Using JavaScript, we can transition between cursor states, place dynamic text within the cursor, apply complex animations, and apply filters.

Interactive CSS animations with elements ricocheting off each other seem more plausible in 2025. While it’s unnecessary to implement Pong in CSS, the increasing flexibility and power of CSS reinforce Lee's suspicion that one day it will be a

Tips and tricks on utilizing the CSS backdrop-filter property to style user interfaces. You’ll learn how to layer backdrop filters among multiple elements, and integrate them with other CSS graphical effects to create elaborate designs.

Well, it turns out that SVG's built-in animation features were never deprecated as planned. Sure, CSS and JavaScript are more than capable of carrying the load, but it's good to know that SMIL is not dead in the water as previously

Yay, let's jump for text-wrap: pretty landing in Safari Technology Preview! But beware that it's different from how it works in Chromium browsers.

This CSS-Tricks update highlights significant progress in the Almanac, recent podcast appearances, a new CSS counters guide, and the addition of several new authors contributing valuable content.

Most of the time, people showcase Tailwind's @apply feature with one of Tailwind's single-property utilities (which changes a single CSS declaration). When showcased this way, @apply doesn't sound promising at all. So obvio


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

Dreamweaver CS6
Visual web development tools
