element {
width: 100%;
}
element.faded {
width: 100%;
height: 700px;
overflow: hidden;
position: relative;
}
element.faded:after {
content: "";
position: absolute;
display: block;
width: 100%;
height: 100%;
top: 0;
background: linear-gradient(to top, white, white 10%, transparent);
background-repeat: no-repeat;
transition: all 500ms ease;
}
반응형
'Develop > Etc..' 카테고리의 다른 글
ngrok 사용하여 localhost를 외부에서 접속가능한 https URL로 생성하기 (0) | 2024.02.08 |
---|---|
Quill Editor Image Resize Error 이슈 해결 (0) | 2023.11.16 |
네이버의 오픈소스 캐로셀 라이브러리 Flicking (0) | 2023.11.15 |