File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ < title > CSS Animation</ title >
7
+ < style >
8
+ .ball {
9
+ position : absolute;
10
+ left : 0 ;
11
+ right : 0 ;
12
+ top : 0 ;
13
+ bottom : 0 ;
14
+ margin : auto;
15
+ width : 100px ;
16
+ height : 100px ;
17
+ border-radius : 50% ;
18
+ background : coral;
19
+
20
+ }
21
+
22
+ /* animation: 축약형, 단축형, 속기형 등으로 부른다. 줄여서 쓰는 형태로, 애니메이션의 모든 속성을 한꺼번에 지정 가능 */
23
+ /* animation-name: 애니메이션의 이름 */
24
+ /* animation-duration: 애니메이션이 재생(지속)되는 시간 */
25
+ /* animation-delay: 애니메이션의 재생이 시작되기 전 대기 시간 */
26
+ /* animation-timing-function: 애니메이션의 가속, 감속을 조정해서 애니메이션 느낌을 다르게 */
27
+ /* animation-iteration-count: 애니메이션의 반복 횟수 */
28
+ /* animation-direction: 애니메이션의 재생 방향 normal, reverse, alternate, alternate-reverse */
29
+ /* animation-play-state: 애니메이션의 재생, 정지 상태 running, paused */
30
+ /* animation-fill-mode: 애니메이션이 재생되지 않는 동안의 스타일을 지정 none, forwards, backwards, both */
31
+ </ style >
32
+ </ head >
33
+ < body >
34
+ < div class ="ball "> </ div >
35
+ </ body >
36
+ </ html >
You can’t perform that action at this time.
0 commit comments