KandZ – Tuts

We like to help…!

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!

Leave a Reply