mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
48 lines
No EOL
821 B
HTML
48 lines
No EOL
821 B
HTML
<div class="card"><p>Card</p></div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by TemRevil - Tags: simple, animation, action, card */
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 190px;
|
|
height: 254px;
|
|
background: #023047;
|
|
color: white;
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: 0.1s 0s linear;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.card:active {
|
|
scale: 0.95;
|
|
}
|
|
.card::after {
|
|
content: "";
|
|
width: 500px;
|
|
height: 500px;
|
|
border-radius: 50%;
|
|
background-color: #fb8500;
|
|
position: absolute;
|
|
right: 250px;
|
|
transition: right 0.4s 0s linear;
|
|
z-index: 1;
|
|
}
|
|
.card:hover::after {
|
|
right: -160px;
|
|
}
|
|
.card:hover {
|
|
color: #023047;
|
|
}
|
|
.card p {
|
|
position: absolute;
|
|
z-index: 10;
|
|
}
|
|
|
|
</style>
|
|
|