일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- 웹솔루션
- CSS
- #솔루션
- php
- #cgimall
- #동영상
- #CSS
- CGIMALL
- #happycgi
- #쇼핑몰
- happycgi
- 홈페이지
- #홈페이지
- #image
- #홈페이지제작
- #업종별
- 사이트제작
- 해피씨지아이
- 홈페이지제작
- javascript
- 게시판
- #해피CGI
- #웹솔루션
- #뉴스
- jquery
- #jQuery
- 해피CGI
- 이미지
- #이미지
- 솔루션
- Today
- Total
웹솔루션개발 25년 노하우! 해피CGI의 모든것
[해피CGI][cgimall] 평점이 나오는 마우스 오버 효과 Movie Poster Interaction 본문
[해피CGI][cgimall] 평점이 나오는 마우스 오버 효과 Movie Poster Interaction
해피CGI윤실장 2025. 5. 12. 09:04
마우스를 올리면 제목, 평점 등 다양한 정보가 나타나는 마우스 오버 효과입니다.
응용하여 다양하게 활용 가능합니다.
HTML 구조
.
.
.
자세한 소스는 데모 사이트를 통해 확인해 주세요.
CSS 소스
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #f5f5f5;
}
.wrapper {
position: relative;
width: 100%;
height: 100%;
padding: 20px;
display: flex;
align-content: center;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}
.card {
position: relative;
width: 325px;
height: 450px;
background: #000;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}
.poster {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.poster::before {
content: '';
position: absolute;
bottom: -45%;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
transition: .3s;
}
.card:hover .poster::before {
bottom: 0;
}
.poster img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: .3s;
}
.card:hover .poster img {
transform: scale(1.1);
}
.details {
position: absolute;
bottom: -100%;
left: 0;
width: 100%;
height: auto;
padding: 1.5em 1.5em 2em;
background: #000a;
backdrop-filter: blur(16px) saturate(120%);
transition: .3s;
color: #fff;
z-index: 2;
}
.card:hover .details {
bottom: 0;
}
.details h1,
.details h2 {
font-weight: 700;
}
.details h1 {
font-size: 1.5em;
margin-bottom: 5px;
}
.details h2 {
font-weight: 400;
font-size: 1em;
margin-bottom: 10px;
opacity: .6;
}
.details .rating {
position: relative;
margin-bottom: 15px;
display: flex;
gap: .25em;
}
.details .rating i {
color: #e3c414;
}
.details .rating span {
margin-left: 0.25em;
}
.
.
.
해당 사이트로 이동해서 전체 소스를 확인하실 수 있습니다.
'웹프로그램밍 자료실 > HTML 자료' 카테고리의 다른 글
[해피CGI][cgimall] Squircle Web Component Button (0) | 2025.05.14 |
---|---|
[해피CGI][cgimall] 클릭하면 서서히 나오는 오버레이 메뉴 기본형 overlay menu (0) | 2025.05.13 |
[해피CGI][cgimall] Bootstrap Button Toggle (On/Off Switch) 스위치 버튼 (0) | 2025.05.09 |
[해피CGI][cgimall] Responsive Hex Grid Image Layout (0) | 2025.04.23 |
[해피CGI][cgimall] Tab Sliding Animation 슬라이딩 애니메이션 탭메뉴 (0) | 2025.04.16 |