티스토리 뷰
https://www.w3schools.com/css/css3_animations.asp
CSS Animations
CSS Animations CSS Animations CSS allows animation of HTML elements without using JavaScript or Flash! CSS In this chapter you will learn about the following properties: @keyframes animation-name animation-duration animation-delay animation-iteration-count
www.w3schools.com
애니메이션은 element에적용되는 CSS 스타일을 다른 CSS 스타일로 부드럽게 전환시켜 준다.
애니메이션은 애니메이션을 나타내는 CSS 스타일과 애니메이션의 중간 상태를 나타내는 키프레임들로 이루어진다.
transition과의 차이점
transition은 0%에서 100%로 바로 변경된다면
animation은 0% 1% 2% ... 100%
따라서 transition보다 선택지가 많음.
transition은 hover와 같은 trigger에 의해 발동된다면
animation은 그렇지 않다.


animation-duration이 몇초인지에 따라 % 가 몇초 지점인지가 달라진다.
animation-duration : 10s 라면 50%가 5s 지점일때다.
animation-iteration-count는 애니메이션이 몇번 반복될지 지정한다.
infinte 값 지정시 무한히 반복.
Animation-fill-mode
애니메이션이 시작되기 전이나 끝나고 난 후 어떤 값이 적용될지 지정한다.
https://developer.mozilla.org/ko/docs/Web/CSS/animation-fill-mode
animation-fill-mode - CSS: Cascading Style Sheets | MDN
animation-fill-mode CSS 속성은 CSS 애니메이션이 실행 전과 후에 대상에 스타일을 적용하는 방법을 지정합니다.
developer.mozilla.org
'html & css' 카테고리의 다른 글
| css) icon (font awsome) (0) | 2021.08.17 |
|---|---|
| css) variable (0) | 2021.08.17 |
| css) transition (0) | 2021.08.16 |
| css) transform (0) | 2021.08.16 |
| css) pseudo class (hover, link, visited...) (0) | 2021.08.16 |
- Total
- Today
- Yesterday
- C++
- recursion
- back tracking
- Implementation
- dfs
- priority queue
- MVC
- permutation
- Kruskal
- C
- Spring
- binary search
- graph
- Python
- two pointer
- greedy
- Brute Force
- DP
- Tree
- CSS
- 자료구조
- Stack
- db
- floyd warshall
- 이분탐색
- Dijkstra
- Unity
- 재귀
- 조합
- BFS
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
