: 요소의 위치를 수평 또는 수직 방향으로 변경하거나, 수평 및 수직 방향으로 변경한다. (지차원 벡터의 특징에 따라 이동시킨다.)
translate : x좌표, y좌표
<화면>

<코드>
<!DOCTYPE html>
<html>
<head>
<style>
div {
height: 90px;
width: 40px;
background-color: red;
translate: 100px 20px;
}
</style>
</head>
<body>
<h3>Translate property</h3>
<div></div>
<p>Moves red box 100px right, and 20px down.</p>
<p>Try to change y-value to -30px and see what happens.</p>
</body>
</html>
: 요소에 회전, 크기 조절, 기울이기, 이동 효과 등을 부여할 때 사용한다.
: transform와 함께 사용하는 속성으로, 요소의 transform을 위한 기준점을 정하기 위해 사용된다. (기본값은 center)
<화면>

<코드>
artist {
padding: 20px;
position: absolute;
border: 1px solid black;
background-color: yellow;
-ms-transform: rotate(15deg); /* IE 9 */
-ms-transform-origin: 20% 40%; /* IE 9 */
-webkit-transform: rotate(15deg); /* Safari 3-8 */
-webkit-transform-origin: 20% 40%; /* Safari 3-8 */
transform: rotate(20deg);
transform-origin: 20% 40%;
}
: 요소에 적용되는 CSS 스타일을 다른 CSS 스타일로 부드럽게 전환시켜준다.
animation {keyframes name} 시간 애니메이션 재생 횟수
nimation-name: name;
/* 키프레임 이름 = 애니메이션 이름 */
@keyframes name {
/* from(0%), to(100%) 또는 %로 작성 */
from {
width: 100px;
}
to {
width: 300px;
}
25%, 75% {
background-color: red;
}
}
/* 유효하지 않은 애니메이션 이름 */
animation-name: 1name; // 숫자로 시작하는 이름
animation-name: @name; // 특수 문자로 시작하는 이름
animation-duration: time | initial | inherit;
/* 초 단위(s), 밀리 초 단위(ms)단위로 적용 가능 */
animation-duration: .5s, 500ms;
animation-timing-function: linear | ease | ease-in | ease-out | ease-in-out | step-start | step-end | steps(int,start|end) | cubic-bezier(n,n,n,n) | initial | inherit;
animation-delay: time;
/* 초 단위(s), 밀리 초 단위(ms)단위로 적용 가능 */
animation-delay: .5s, 500ms;
animation-iteration-count: number | infinite | initial | inherit;
/* 5회, 무한 반복 */
animation-iteration-count: 5, infinite;
animation-direction: normal | reverse | alternate | alternate-reverse | initial | inherit;
animation-fill-mode: none | forwards | backwards | both | initial | inherit;
animation-play-state: paused | running | initial | inherit;
nimation: name duration timing-function delay iteration-count direction fill-mode play-state;
: 애니메이션의 시작, 중간, 끝 상태를 정의할 수 있다.
@keyframes 애니메이션이름 {
from {
시작 스타일
}
to {
끝 스타일
}
: 텍스트에 그림자 효과를 줄 수 있다.
text-shadow : offset-x, offset-y, blur-radius, color
1. offset-x, offset-y (필수) : 그림자의 위치를 지정한다.
<화면>

<코드>
title {
display: block;
font-size: 20pt;
text-shadow: 10px 10px 1px red; /* added */
}
: 일정한 수치로 요소의 크기를 배가시켜서 크기를 조정한다.
`transform : scale(X축, Y축)
: 요소를 기울이는 데 사용된다. (각도를 파라미터로 받아 왜곡시킨다)
