Challenge Button by Yaya12085
Zoom
Saved
1 line⌘Z Undo
1<!--2 Author: Yaya120853 Source: https://uiverse.io/Yaya12085/perfect-newt-34 License: MIT5 Tags: #button #challenge #hover-effect #ui #uiverse6-->7<button class="button">8 <span class="icon">9 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="paper-plane">10 <path d="M20.34,9.32l-14-7a3,3,0,0,0-4.08,3.9l2.4,5.37h0a1.06,1.06,0,0,1,0,.82l-2.4,5.37A3,3,0,0,0,5,22a3.14,3.14,0,0,0,1.35-.32l14-7a3,3,0,0,0,0-5.36Zm-.89,3.57-14,7a1,1,0,0,1-1.35-1.3l2.39-5.37A2,2,0,0,0,6.57,13h6.89a1,1,0,0,0,0-2H6.57a2,2,0,0,0-.08-.22L4.1,5.41a1,1,0,0,1,1.35-1.3l14,7a1,1,0,0,1,0,1.78Z">11 </path>12 </svg>13 </span>14 <span class="title">Send Message</span>15</button>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!--
Author: Yaya12085
Source: https://uiverse.io/Yaya12085/perfect-newt-3
License: MIT
Tags: #button #challenge #hover-effect #ui #uiverse
-->
<button class="button">
<span class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="paper-plane">
<path d="M20.34,9.32l-14-7a3,3,0,0,0-4.08,3.9l2.4,5.37h0a1.06,1.06,0,0,1,0,.82l-2.4,5.37A3,3,0,0,0,5,22a3.14,3.14,0,0,0,1.35-.32l14-7a3,3,0,0,0,0-5.36Zm-.89,3.57-14,7a1,1,0,0,1-1.35-1.3l2.39-5.37A2,2,0,0,0,6.57,13h6.89a1,1,0,0,0,0-2H6.57a2,2,0,0,0-.08-.22L4.1,5.41a1,1,0,0,1,1.35-1.3l14,7a1,1,0,0,1,0,1.78Z">
</path>
</svg>
</span>
<span class="title">Send Message</span>
</button>1/* * Author: Yaya12085 * Source: https://uiverse.io/Yaya12085/perfect-newt-3 * License: MIT * Tags: #button #challenge #hover-effect #ui #uiverse */2/* * From Uiverse.io by Yaya12085 - https://uiverse.io/Yaya12085/perfect-newt-3 * MIT License - Copyright (c) 2023 Uiverse.io and its contributors * https://github.com/uiverse-io/galaxy/blob/main/LICENSE */3.button {4 --radius: 20px;5 --white: #ffffff;6 --white50: #ffffff80;7 --white35: #ffffff59;8 --second_white: #f8f8f8;9 --second_white75: #f8f8f8bf;10 --third_white: #fafbfb;11 --gray: #cacaca;12 --gray50: #cacaca80;13 --black: #1c1c1c;14 --black15: #1c1c1c26;15 --black13: #1c1c1c21;16 --black10: #1c1c1c1a;17 --black5: #1c1c1c0d;18 --black35: #1c1c1c59;19 --black75: #1c1c1cbf;20 --black50: #1c1c1c80;21 position: relative;22 width: 250px;23 height: 80px;24 border-radius: var(--radius);25 background-color: var(--white);26 background: linear-gradient(var(--white) 100%, var(--gray) 50%);27 cursor: pointer;28 outline: none;29 border: none;30 display: flex;31 align-items: center;32 justify-content: center;33 gap: 6px;34 transition: all 0.3s;35}36.icon {37 position: relative;38 left: 0;39 display: flex;40 align-items: center;41 justify-content: center;42 transform: rotate(-45deg);43 transition: all 0.3s;44}45.icon #paper-plane {46 height: 24px;47 width: 24px;48 fill: var(--black);49 filter: drop-shadow(0 1px 1px var(--black35));50}51.title {52 filter: drop-shadow(0 1px 1px var(--black35));53 font-size: 20px;54 color: var(--black);55 font-weight: 600;56 transition: all 0.3s;57}58.button::after, .button::before {59 position: absolute;60 content: "";61 left: 50%;62 top: 50%;63 transform: translate(-50%, -50%);64 transition: all 0.3s;65}66.button::before {67 background-color: var(--white);68 box-shadow: inset 10px 10px 15px var(--gray50), inset -10px -10px 15px var(--white), 0 0 0 2px var(--white);69 width: 90%;70 height: 80%;71 border-radius: calc(var(--radius) * 10);72}73.button::after {74 filter: drop-shadow(0 2px 4px var(--black15)), drop-shadow(0 30px 100px var(--black13)), drop-shadow(0 15px 30px var(--black10)), drop-shadow(0 16px 12px var(--black5));75 box-shadow: 0 0 0 1px var(--white);76 background-color: var(--black);77 background: linear-gradient(0deg, var(--black50), var(--gray));78 width: 102%;79 height: 108%;80 border-radius: calc(var(--radius) + 2px);81 z-index: -1;82 transition: all 0.1s;83}84.button:hover::after {85 width: 101%;86 height: 104%;87 filter: none;88}89.button:active::after {90 width: 100%;91 height: 100%;92 filter: none;93}94.button:hover .icon {95 transform: rotate(0) translateX(50%);96 left: calc(50% + 24px);97}98.button:hover .title {99 transform: translateX(-24px);100}
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* * Author: Yaya12085 * Source: https://uiverse.io/Yaya12085/perfect-newt-3 * License: MIT * Tags: #button #challenge #hover-effect #ui #uiverse */
/* * From Uiverse.io by Yaya12085 - https://uiverse.io/Yaya12085/perfect-newt-3 * MIT License - Copyright (c) 2023 Uiverse.io and its contributors * https://github.com/uiverse-io/galaxy/blob/main/LICENSE */
.button {
--radius: 20px;
--white: #ffffff;
--white50: #ffffff80;
--white35: #ffffff59;
--second_white: #f8f8f8;
--second_white75: #f8f8f8bf;
--third_white: #fafbfb;
--gray: #cacaca;
--gray50: #cacaca80;
--black: #1c1c1c;
--black15: #1c1c1c26;
--black13: #1c1c1c21;
--black10: #1c1c1c1a;
--black5: #1c1c1c0d;
--black35: #1c1c1c59;
--black75: #1c1c1cbf;
--black50: #1c1c1c80;
position: relative;
width: 250px;
height: 80px;
border-radius: var(--radius);
background-color: var(--white);
background: linear-gradient(var(--white) 100%, var(--gray) 50%);
cursor: pointer;
outline: none;
border: none;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.3s;
}
.icon {
position: relative;
left: 0;
display: flex;
align-items: center;
justify-content: center;
transform: rotate(-45deg);
transition: all 0.3s;
}
.icon #paper-plane {
height: 24px;
width: 24px;
fill: var(--black);
filter: drop-shadow(0 1px 1px var(--black35));
}
.title {
filter: drop-shadow(0 1px 1px var(--black35));
font-size: 20px;
color: var(--black);
font-weight: 600;
transition: all 0.3s;
}
.button::after, .button::before {
position: absolute;
content: "";
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transition: all 0.3s;
}
.button::before {
background-color: var(--white);
box-shadow: inset 10px 10px 15px var(--gray50), inset -10px -10px 15px var(--white), 0 0 0 2px var(--white);
width: 90%;
height: 80%;
border-radius: calc(var(--radius) * 10);
}
.button::after {
filter: drop-shadow(0 2px 4px var(--black15)), drop-shadow(0 30px 100px var(--black13)), drop-shadow(0 15px 30px var(--black10)), drop-shadow(0 16px 12px var(--black5));
box-shadow: 0 0 0 1px var(--white);
background-color: var(--black);
background: linear-gradient(0deg, var(--black50), var(--gray));
width: 102%;
height: 108%;
border-radius: calc(var(--radius) + 2px);
z-index: -1;
transition: all 0.1s;
}
.button:hover::after {
width: 101%;
height: 104%;
filter: none;
}
.button:active::after {
width: 100%;
height: 100%;
filter: none;
}
.button:hover .icon {
transform: rotate(0) translateX(50%);
left: calc(50% + 24px);
}
.button:hover .title {
transform: translateX(-24px);
}Changes made here are only a live preview and will not be saved.
Save to GitHub
GitHub opens a new file in your repository with this element filled in. Review it there and press Commit changes. Nothing is sent from codepeek and no GitHub access is needed.
◉ 1 views
Build it with AIA ready prompt with the code, the credit and how to adapt it to your project.
Challenge button created by Yaya12085 on Uiverse.io. Open source under the MIT license.
Community
You need to sign in before you can write a comment.