◾ transform (이미지만 가능)
→ transition 으로 조절이 가능하다 !
→ rotateX,Y,Z(??deg); // deg: 각도
transform: rotateX(120deg);
→ scaleX,Y,Z(?);
transform: scale(2,2);
→ translate X,Y,Z(-1000px); // 지정하지 않은 텍스트는 이동하지 않음 // 사진을 좀 이동시키고 싶을 때
transform: translateX(350px);
→ 같이 사용 가능
transform: rotateZ(300deg) scale(2);
img {
color: black;
background-color: red;
text-decoration: none;
padding: 5px 10px;
height: 500px;
border: 10px solid black;
border-radius: 50%;
transition: transform 5s ease-in-out;
}
img:hover {
transform: rotate(80deg);
}
'CSS 마스터하기 > CSS' 카테고리의 다른 글
[CSS] 미디어 쿼리 (반응형 모바일) 마스터하기 (0) | 2024.04.05 |
---|---|
[CSS] Animation(애니메이션) 마스터하기 (0) | 2024.04.05 |
[CSS] Transitions(전환) 마스터하기 (0) | 2024.04.05 |
[CSS] color(:root) 마스터하기 (0) | 2024.04.05 |
[CSS] state 마스터하기 (0) | 2024.04.05 |