برنامه نویسی
انیمیشن مداری css – انجمن DEV
Summarize this content to 400 words in Persian Lang
class=”body”>
class=”box”>
class=”item”>
وارد حالت تمام صفحه شوید
از حالت تمام صفحه خارج شوید
.container {
width: 100%;
height: 100vh;
border: 1px dashed red;
display: flex;
justify-content: center;
align-items: center;
}
.box {
width: 400px;
height: 400px;
border: 2px solid greenyellow;
border-radius: 50%;
animation: loop 5s linear infinite;
}
.item {
width: 100px;
height: 100px;
border-radius: 50%;
border: 2px solid yellow;
background: goldenrod;
}
@keyframes loop {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
وارد حالت تمام صفحه شوید
از حالت تمام صفحه خارج شوید
class="body">
class="box">
class="item">
.container {
width: 100%;
height: 100vh;
border: 1px dashed red;
display: flex;
justify-content: center;
align-items: center;
}
.box {
width: 400px;
height: 400px;
border: 2px solid greenyellow;
border-radius: 50%;
animation: loop 5s linear infinite;
}
.item {
width: 100px;
height: 100px;
border-radius: 50%;
border: 2px solid yellow;
background: goldenrod;
}
@keyframes loop {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}