| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- #홈페이지제작
- #뉴스
- 게시판
- #happycgi
- #해피CGI
- 해피씨지아이
- php
- 홈페이지제작
- CSS
- #CSS
- #image
- 솔루션
- 웹솔루션
- 해피CGI
- CGIMALL
- #업종별
- jquery
- #웹솔루션
- javascript
- 이미지
- #홈페이지
- #이미지
- 홈페이지
- #동영상
- #쇼핑몰
- happycgi
- #jQuery
- #솔루션
- #cgimall
- 사이트제작
- Today
- Total
웹솔루션개발 26년 노하우! 해피CGI의 모든것
[해피CGI][cgimall] 카드 유형 마우스 오버 이펙트 cards hover effect 본문
소스를 변경하여 다양하게 응용 가능합니다.
HTML 구조
<div id="cards">
<div class="card">
<div class="card-content">
<div class="card-image">
<i class="fa-duotone fa-apartment"></i>
</div>
<div class="card-info-wrapper">
<div class="card-info">
<i class="fa-duotone fa-apartment"></i>
<div class="card-info-title">
<h3>Apartments</h3>
<h4>Lorem ipsum dolor</h4>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-content">
<div class="card-image">
<i class="fa-duotone fa-unicorn"></i>
</div>
<div class="card-info-wrapper">
<div class="card-info">
<i class="fa-duotone fa-unicorn"></i>
<div class="card-info-title">
<h3>Unicorns</h3>
<h4>Lorem ipsum dolor</h4>
.
.
.
CSS 소스
:root {
--bg-color: rgb(20, 20, 20);
--card-color: rgb(23, 23, 23);
}
body {
align-items: center;
background-color: var(--bg-color);
display: flex;
height: 100vh;
justify-content: center;
margin: 0px;
overflow: hidden;
padding: 0px;
}
#cards {
display: flex;
flex-wrap: wrap;
gap: 8px;
max-width: 916px;
width: calc(100% - 20px);
}
#cards:hover > .card::after {
opacity: 1;
}
.card {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px;
cursor: pointer;
display: flex;
height: 260px;
flex-direction: column;
position: relative;
width: 300px;
}
.card:hover::before {
opacity: 1;
}
.card::before,
.card::after {
border-radius: inherit;
content: "";
height: 100%;
left: 0px;
opacity: 0;
position: absolute;
top: 0px;
transition: opacity 500ms;
width: 100%;
}
.card::before {
background: radial-gradient(
800px circle at var(--mouse-x) var(--mouse-y),
rgba(255, 255, 255, 0.06),
transparent 40%
);
z-index: 3;
}
.card::after {
background: radial-gradient(
600px circle at var(--mouse-x) var(--mouse-y),
rgba(255, 255, 255, 0.4),
transparent 40%
);
z-index: 1;
}
.card > .card-content {
background-color: var(--card-color);
border-radius: inherit;
display: flex;
flex-direction: column;
flex-grow: 1;
inset: 1px;
padding: 10px;
position: absolute;
z-index: 2;
}
.
.
.
JS 소스
첨부파일을 다운로드하거나 해당 사이트로 이동하여 확인해 주세요.
첨부파일을 다운로드하거나 해당 사이트로 이동하여 전체 소스를 확인하실 수 있습니다.
'웹프로그램밍 자료실 > 기타 자료' 카테고리의 다른 글
| [해피CGI][cgimall] 아이콘 세트를 제공하는 사이트 - icon-sets.iconify.design (0) | 2026.02.24 |
|---|---|
| [해피CGI][cgimall] Microsoft Azure AI 서비스의 개발자용 인터페이스 - Azure Translator API (0) | 2026.02.23 |
| [해피CGI][cgimall] DeepL 번역 서비스의 개발자용 인터페이스 - DeepL API (0) | 2026.02.20 |
| [해피CGI][cgimall] :has()로 만드는 커스텀 커서 인터랙션 데모 (0) | 2026.02.09 |
| [해피CGI][cgimall] CSS: Radio Input Stars 라디오박스를 이용한 별점 (0) | 2026.02.06 |

