우선 CSS는 간단한 작업(버튼의 색을 바꾸는 것과 같은 ), JavaScript는 복잡한 작업(공이 튀는 바운스 애니메이션 같은 세밀한 제어가 필요한 애니메이션) 에 쓰임
스크롤 해도 고정되는 배너 CSS
깜빡이는 효과 [Blink Effect}
배경 이미지 고정하기 [background-attachment]
애니메이션(@keyframes)
@keyframes blink-effect {
50% {
opacity: 0;
}
}
.blink {
animation: blink-effect 1s step-end infinite;
/*
animation-name: blink-effect;
animation-duration: 1s;
animation-iteration-count:infinite;
animation-timing-function:step-end;
*/
}
출처: https://7942yongdae.tistory.com/69 [개발자 일지:티스토리]
background-attachment: fixed;
이 속성 한줄이면 된다.
창을 줄일때 이미지가 찌그러지지 않게 하기(cover)
🧨더욱더 많이 써보고 싶은 CSS 효과들이 많지만 실습 할 때 더욱더 알아보고 직접 써보기도 해보자!