잔글 (WARSAW님이 틀:연습장/styles.css 문서를 넘겨주기를 만들지 않고 틀:연습장/와르샤와/styles.css 문서로 이동했습니다) |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
/* The element to apply the animation to */ | /* The element to apply the animation to */ | ||
div { | div { | ||
width: 100px; | |||
height: 100px; | height: 100px; | ||
background-color: red; | background-color: red; | ||
animation-name: example; | animation-name: example; | ||
animation-duration: 4s; | animation-duration: 4s; | ||
} | |||
/* The animation code */ | |||
@keyframes example { | |||
from {background-color: red;} | |||
to {background-color: yellow;} | |||
} | } |