편집 요약 없음 태그: 수동 되돌리기 |
편집 요약 없음 태그: 수동 되돌리기 |
||
48번째 줄: | 48번째 줄: | ||
width: 100% | width: 100% | ||
} | } | ||
.box | .box:active{ | ||
animation: box-ani 1s linear forwards; | animation: box-ani 1s linear forwards; | ||
} | } |
2023년 5월 20일 (토) 21:18 판
.losiacard {
display: inline-block;
overflow: hidden;
width: 190px;
height: 280px;
border-radius: 5px;
transform: scale(0.90);
transition: .2s ease-out;
}
.losiacard:hover{
transition: .2s ease-in;
transform: scale(0.995);
z-index:3;
margin-left: auto;
margin-right: auto;
}
.losiacard img {
display: inline-block;
overflow: hidden;
width: 190px;
height: 280px;
border-radius: 5px;
transform: scale(0.90);
transition: .2s ease-out;
}
.rotate{
transition: transform 2s;
}
.rotate:active{
transform: rotate(70deg);
}
@keyframes box-ani {
from {
transform: translate(0px, 0px);
}
to {
transform: translate(0px, 100px);
}
}
.box {
display: flex;
align-items: center;
justify-content: center;
width: 100%
}
.box:active{
animation: box-ani 1s linear forwards;
}