पृष्ठभूमि स्थिति को चेतन करने के लिए @keyframes का उपयोग करें। CSS के साथ बैकग्राउंड-पोजिशन प्रॉपर्टी पर एनिमेशन लागू करने के लिए, आप निम्न कोड को चलाने का प्रयास कर सकते हैं
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 500px;
height: 400px;
background: yellow;
background-image: url('https://www.tutorialspoint.com/latest/microservice_architecture.png');
animation: myanim 3s infinite;
background-position: bottom left;
}
@keyframes myanim {
20% {
background-color: maroon;
background-position: bottom right;
}
}
</style>
</head>
<body>
<div></div>
</body>
</html>