mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
34 lines
694 B
HTML
34 lines
694 B
HTML
<div class="card">
|
|
Click me
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by SteveBloX - Tags: glassmorphism, card, hover, active */
|
|
.card {
|
|
box-sizing: border-box;
|
|
width: 190px;
|
|
height: 254px;
|
|
background: rgba(217, 217, 217, 0.58);
|
|
border: 1px solid white;
|
|
box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
|
|
backdrop-filter: blur(6px);
|
|
border-radius: 17px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.5s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
user-select: none;
|
|
font-weight: bolder;
|
|
color: black;
|
|
}
|
|
|
|
.card:hover {
|
|
border: 1px solid black;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.card:active {
|
|
transform: scale(0.95) rotateZ(1.7deg);
|
|
}
|
|
</style>
|