CSS 애니메이션 자체는 쉽다.
p {
animation-duration: 3s;
animation-name: 사용할 애니메이션이름;
}
@keyframes 애니메이션이름 {
from {
margin-left: 100%;
width: 300%;
}
to {
margin-left: 0%;
width: 100%;
}
}
@-webkit-keyframes 애니메이션이름 {
0% {
left:100px;
}
100% {
left:300px;
}
}
이런 식으로 %별로 위치나 크기를 지정할 수 있다.
p {
animation-duration: 3s;
animation-name: slidein;
animation-iteration-count: infinite;
animation-direction: alternate;
}
animation-iteration-count: infinite; 를 사용하면 애니메이션이 무한 반복된다.
참고 자료
https://angelplayer.tistory.com/507
[HTML/CSS] 움직이는 Gradients 배경 적용하기
오늘은 동적으로 움직이는 그레디언트를 background-image로 적용하는 방법을 알아보겠습니다. https://webgradients.com/ Free Gradients Collection by itmeo.com Free collection of 180 background gradients that you can use as conten
angelplayer.tistory.com
https://www.youtube.com/watch?v=YDCCauu4lIk&t=36s
https://studiomeal.com/archives/category/1mincoding
웹페이지 가로 모드/세로 모드 인식하기
모바일 트래픽이 데스크탑을 앞지른 시대인 요즘은, 모바일이나 데스크탑 어디에서도 콘텐츠가 무리 없이 보이도록 대부분의 웹페이지들이 반응형으로 제작됩니다. 반응형 페이지를 만들 때
studiomeal.com
'개발' 카테고리의 다른 글
| 깊은 복사 얕은 복사 (0) | 2024.11.05 |
|---|---|
| JavaScript 소개 (0) | 2024.11.04 |
| 클럭 [Clock] (0) | 2024.10.29 |
| 데이터 와 데이터베이스 (0) | 2024.10.28 |
| 값 Value 와 참조 Referance 타입 (0) | 2024.10.27 |
댓글