animation শর্টহ্যান্ড প্রোপার্টি দিয়ে animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state — সব একসাথে লিখা যায়।
উদাহরণ
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
background-color: yellow;
animation: myanim 2s;
}
@keyframes myanim {
from { background-color: green; }
to { background-color: blue; }
}
</style>
</head>
<body>
<div></div>
</body>
</html>
সিনট্যাক্স: animation: name duration timing-function delay iteration-count direction fill-mode play-state; — ক্রম মেনে চললে সব মান ঐচ্ছিক।