mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
66 lines
1.2 KiB
HTML
66 lines
1.2 KiB
HTML
<div class="cards">
|
|
<div class="card red">
|
|
<p class="tip">Hover Me</p>
|
|
<p class="second-text">Lorem Ipsum</p>
|
|
</div>
|
|
<div class="card blue">
|
|
<p class="tip">Hover Me</p>
|
|
<p class="second-text">Lorem Ipsum</p>
|
|
</div>
|
|
<div class="card green">
|
|
<p class="tip">Hover Me</p>
|
|
<p class="second-text">Lorem Ipsum</p>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by kamehame-ha - Tags: simple, animated, clean, sample */
|
|
.cards {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.cards .red {
|
|
background-color: #f43f5e;
|
|
}
|
|
|
|
.cards .blue {
|
|
background-color: #3b82f6;
|
|
}
|
|
|
|
.cards .green {
|
|
background-color: #22c55e;
|
|
}
|
|
|
|
.cards .card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
text-align: center;
|
|
height: 100px;
|
|
width: 250px;
|
|
border-radius: 10px;
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: 400ms;
|
|
}
|
|
|
|
.cards .card p.tip {
|
|
font-size: 1em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cards .card p.second-text {
|
|
font-size: .7em;
|
|
}
|
|
|
|
.cards .card:hover {
|
|
transform: scale(1.1, 1.1);
|
|
}
|
|
|
|
.cards:hover > .card:not(:hover) {
|
|
filter: blur(10px);
|
|
transform: scale(0.9, 0.9);
|
|
}
|
|
</style>
|