mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
76 lines
1.5 KiB
HTML
76 lines
1.5 KiB
HTML
<div class="card">
|
|
<div class="align">
|
|
<span class="red"></span>
|
|
<span class="yellow"></span>
|
|
<span class="green"></span>
|
|
</div>
|
|
|
|
<h1>HOVER ME</h1>
|
|
<p>
|
|
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Unde explicabo enim rem odio assumenda?
|
|
</p>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by Fcodingx - Tags: card */
|
|
.card {
|
|
width: 190px;
|
|
height: 120px;
|
|
padding: 0.5rem;
|
|
background: rgba(198, 198, 198, 0.34);
|
|
border-radius: 8px;
|
|
backdrop-filter: blur(5px);
|
|
border-bottom: 3px solid rgba(255, 255, 255, 0.440);
|
|
border-left: 2px rgba(255, 255, 255, 0.545) outset;
|
|
box-shadow: -40px 50px 30px rgba(0, 0, 0, 0.280);
|
|
transform: skewX(10deg);
|
|
transition: .4s;
|
|
overflow: hidden;
|
|
color: white;
|
|
}
|
|
|
|
.card:hover {
|
|
height: 254px;
|
|
transform: skew(0deg);
|
|
}
|
|
|
|
.align {
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 5px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.red {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background-color: #ff605c;
|
|
box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.280);
|
|
}
|
|
|
|
.yellow {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background-color: #ffbd44;
|
|
box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.280);
|
|
}
|
|
|
|
.green {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background-color: #00ca4e;
|
|
box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.280);
|
|
}
|
|
|
|
.card h1 {
|
|
text-align: center;
|
|
margin: 1.3rem;
|
|
color: rgb(218, 244, 237);
|
|
text-shadow: -10px 5px 10px rgba(0, 0, 0, 0.573);
|
|
}
|
|
|
|
|
|
</style>
|