asp.net.ph

Skip Navigation LinksAbakada: Back to Basics > Language References > CSS Properties > At-Rules > CSS At-Rules: @keyframes

keyframe At-Rule

CSS Properties Index   At-Rules Index


Controls the steps in a CSS animation sequence.

Syntax

@keyframes keyframes-name {
   from {
      ... style rule ...
   }
   to {
      ... style rule ...
   }
}

Possible Values


Parameter Description Valid Values
keyframes-name A name identifying the keyframes sequence. User-defined case-sensitive string used as an identifier.
from The starting point in the sequence at which the keyframe should begin. A starting offset of 0% or expresed as a percentage of the total length of the sequence.
to The end of the sequence at which the keyframe should finish. An ending offset of 100% or expresed as a percentage of the total length of the sequence.

Remarks

Keyframes specify the behavior of one cycle of an animation.

Keyframes are specified using the @keyframes at-rule.

Example

For a brief overview, please see Understanding and Using CSS Animations.

See Also

CSS Animations



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note