Clip Path Reveal Hover
clip-pathの円形マスクがホバーで中心から広がり全体を露出する。
HTML
<div class="cprh-card"> <div class="cprh-overlay"></div> <div class="cprh-content"><h3>Reveal</h3><p>Hover to unmask</p></div> </div>
CSS
.cprh-card {
position: relative;
width: 260px;
height: 160px;
background: linear-gradient(135deg, #6366f1, #a855f7);
border-radius: 16px;
overflow: hidden;
cursor: pointer;
}
.cprh-overlay {
position: absolute;
inset: 0;
background: #18181b;
clip-path: circle(100% at 50% 50%);
transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cprh-card:hover .cprh-overlay {
clip-path: circle(0% at 50% 50%);
}
.cprh-content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: #fff;
}
.cprh-content h3 { margin: 0 0 4px; font-size: 18px; }
.cprh-content p { margin: 0; font-size: 12px; opacity: 0.7; }