CSS3 전환 + 변환
CSS3 전환 + 변환
다음 예제에서는 전환 효과에 변형을 추가합니다.
예
div {
-webkit-transition: width 2s, height 2s, -webkit-transform 2s; /* Safari */
transition: width 2s, height 2s, transform 2s;
}
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
-webkit-transition: width 2s, height 2s, -webkit-transform 2s; /* Safari */
transition: width 2s, height 2s, transform 2s;
}
div:hover {
width: 300px;
height: 300px;
-webkit-transform: rotate(180deg); /* Safari */
transform: rotate(180deg);
}
</style>
</head>
<body>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
<div></div>
<p>Hover over the div element above, to see the transition effect.</p>
</body>
</html>
게시판 목록
퍼블리셔팁
퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 17 | HTML | 21년 전 | 3719 | ||
| 16 | HTML |
아우겐나이스
|
21년 전 | 6289 | |
| 15 | HTML | 21년 전 | 5616 | ||
| 14 | HTML | 21년 전 | 5816 | ||
| 13 | 13년 전 | 2250 | |||
| 12 | 13년 전 | 9651 | |||
| 11 | 13년 전 | 2598 | |||
| 10 | 13년 전 | 2402 | |||
| 9 | 13년 전 | 3602 | |||
| 8 | 13년 전 | 9459 | |||
| 7 | 13년 전 | 3515 | |||
| 6 | 13년 전 | 5871 | |||
| 5 | 13년 전 | 3324 | |||
| 4 | 13년 전 | 4666 | |||
| 3 | 13년 전 | 4541 | |||
| 2 | 13년 전 | 5486 | |||
| 1 | 13년 전 | 3559 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기