[ Transition 기본문법 ]
transition: transition-property | transition-duration | transition-timing-function | transition-delay |
* transition-property : css 속성을 지정함.
* transition-duration : 트렌지션 실행 시간. 기본값 0s
* transition-timing-function : 트렌지션이 실행되는 동안 속도 설정
* transition-delay : 언제 트렌지션을 시작할지 지정
*일반적으로 이렇게 한줄로 사용한다 : transition:all 0.3s ease 0;
transition: 속성명 시간 효과 딜레이시간;
[ Transition 속성 ]
기본적으로는 all 을 사용하지만 특정 값만 트랜지션을 주고 싶을때 해당 속성명을 쓰면됩니다.
트랜지션에서 지원하는 속성명은 아래와 같습니다.
*참고문헌 : http://www.w3.org/TR/css3-transitions/#transition-property-property
Property Name |
Type |
background-color |
as color |
background-position |
as repeatable list of simple list of length, percentage, or calc |
border-bottom-color |
as color |
border-bottom-width |
as length |
border-left-color |
as color |
border-left-width |
as length |
border-right-color |
as color |
border-right-width |
as length |
border-spacing |
as simple list of length |
border-top-color |
as color |
border-top-width |
as length |
bottom |
|
clip |
as rectangle |
color |
as color |
font-size |
as length |
font-weight |
as font weight |
height |
|
left |
|
letter-spacing |
as length |
line-height |
|
margin-bottom |
as length |
margin-left |
as length |
margin-right |
as length |
margin-top |
as length |
max-height |
|
max-width |
|
min-height |
|
min-width |
|
opacity |
as number |
outline-color |
as color |
outline-width |
as length |
padding-bottom |
as length |
padding-left |
as length |
padding-right |
as length |
padding-top |
as length |
right |
|
text-indent |
|
text-shadow |
as shadow list |
top |
|
vertical-align |
as length |
visibility |
as visibility |
width |
|
word-spacing | as length |
z-index | as length |
'웹관련 > HTML-CSS' 카테고리의 다른 글
[CSS3] animation 사용하기 (0) | 2017.08.03 |
---|---|
[CSS] 체크박스 이미지로 변경하기 (0) | 2017.07.06 |
[CSS] Font-face 사용방법 (0) | 2017.02.03 |
[CSS] Map code 생성해주는 프로그램 (0) | 2017.02.01 |
[CSS] 三 모바일 메뉴 버튼만들기 (0) | 2016.11.23 |
댓글