CSS 55 ๐ป animation property
a - animation property intro
animation property can be used to create animations for HTML elements
It is a shorthand for animation-name, animation-duration, animation-timing-function...
animation-delay, animation-iteration-count, animation-direction, animation-fill-mode...
animation-play-state and animation-timeline
syntax โ animation: name duration timing-function delay iteration-count direction fill-mode play-state;
@keyframes are used to create the animation
@keyframes exampleAnimation { } โ defines key frames animation
animation-name: exampleAnimation; โ uses the defined keyframs animation
b - @keyframes rule
@keyframes rule is used to define the animation code
It can be applied to an element using the animation property
It allows you to create smooth transitions and animations by specifying keyframes, which are the stages of an animation.
syntax โ
@keyframes example {
from { /* 0% start state */ }
to { /* 100% end state */ }
}
alternative syntax โ
@keyframes example {
0% {
/* CSS properties at the start of the animation */
}
50% {
/* CSS properties halfway through the animation */
}
100% {
/* CSS properties at the end of the animation */
}
}
@keyframes example โ The name of the animation (example in this case).
The keyframe blocks (from, to, or percentages) that define the animation's stages.
#css #css3 #csscourse #html #html5 #omg
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!