-
Notifications
You must be signed in to change notification settings - Fork 105
/
SouravBandyopadhyay_rare-sloth-65.html
69 lines (61 loc) · 1.58 KB
/
SouravBandyopadhyay_rare-sloth-65.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<div class="payment-button">
<span class="label">Pay Now</span>
<span class="price">$49.99</span>
</div>
<style>
/* From Uiverse.io by SouravBandyopadhyay - Tags: simple, tooltip, animation, text animation, animated, transition, hover effect, hover button */
.payment-button {
--background: #007bff;
--text-color: #fff;
--hover-background: #0056b3;
--hover-text-color: #fff;
--border-radius: 4px;
--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: inline-block;
cursor: pointer;
font-size: 18px;
padding: 0.5em 1.5em;
background: var(--background);
color: var(--text-color);
border: none;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,
color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
text-transform: uppercase;
font-weight: 600;
position: relative;
overflow: hidden;
}
.label {
z-index: 1;
}
.price {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: grid;
place-items: center;
transform-origin: 100%;
transform: scale(1);
transition: transform 0.3s ease-in-out, color 0.3s ease-in-out,
background 0.3s ease-in-out;
color: var(--background);
background: var(--text-color);
border-radius: var(--border-radius);
font-weight: bold;
font-size: 14px;
overflow: hidden;
}
.payment-button:hover {
transform: scale(1.05);
background: var(--hover-background);
color: var(--hover-text-color);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.payment-button:hover .price {
transform: scale(0);
}
</style>