galaxy/Cards/gharsh11032000_happy-hound-90.html

74 lines
1.5 KiB
HTML

<div class="card">
<div class="content">
<p class="heading">Card Hover Effect
</p><p class="para">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Modi
laboriosam at voluptas minus culpa deserunt delectus sapiente
inventore pariatur
</p>
<button class="btn">Read more</button>
</div>
</div>
<style>
/* From Uiverse.io by gharsh11032000 - Tags: card, shadow, hover effect */
.card {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 320px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
padding: 32px;
overflow: hidden;
border-radius: 10px;
background: #212121;
border: 2px solid #313131;
transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}
.content {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
color: #e8e8e8;
transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}
.content .heading {
font-weight: 700;
font-size: 32px;
}
.content .para {
line-height: 1.5;
}
.content .btn {
color: #e8e8e8;
text-decoration: none;
padding: 10px;
font-weight: 600;
border: none;
cursor: pointer;
background: #0974f1;
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.card:hover {
box-shadow: 0 0 20px rgba(9, 117, 241, 0.8);
border-color: #0974f1;
}
.content .btn:hover {
outline: 2px solid #e8e8e8;
background: transparent;
color: #e8e8e8;
}
.content .btn:active {
box-shadow: none;
}
</style>