উদাহরণ
CSS-এ margin-top প্রপার্টিতে অ্যানিমেশন প্রয়োগ করতে নিচের কোডটি চালান:
<!DOCTYPE html>
<html>
<head>
<style>
div {
background-color: orange;
animation: myanim 4s infinite;
color: white;
}
@keyframes myanim {
30% {
margin-top: 30px;
}
}
</style>
</head>
<body>
<h2>প্রথম হেডিং</h2>
<div>
This is demo text.
</div>
</body>
</html>