Animation Button by asgardOP
Zoom
Saved
1 line⌘Z Undo
1<!--2 Author: asgardOP3 Source: https://uiverse.io/asgardOP/light-shrimp-734 License: MIT5 Tags: #animation #btn #button #message #modern #simple #uiverse #white6-->7<button class="button">8 <div>9 <svg viewBox="0 0 24 24" fill="none" height="24" width="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="w-6 h-6 text-gray-800 dark:text-white">10 <path d="m12 18-7 3 7-18 7 18-7-3Zm0 0v-5" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" stroke="currentColor">11 </path>12 </svg>13 Send Message14 </div>15</button>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!--
Author: asgardOP
Source: https://uiverse.io/asgardOP/light-shrimp-73
License: MIT
Tags: #animation #btn #button #message #modern #simple #uiverse #white
-->
<button class="button">
<div>
<svg viewBox="0 0 24 24" fill="none" height="24" width="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="w-6 h-6 text-gray-800 dark:text-white">
<path d="m12 18-7 3 7-18 7 18-7-3Zm0 0v-5" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" stroke="currentColor">
</path>
</svg>
Send Message
</div>
</button>1/* * Author: asgardOP * Source: https://uiverse.io/asgardOP/light-shrimp-73 * License: MIT * Tags: #animation #btn #button #message #modern #simple #uiverse #white */2/* * From Uiverse.io by asgardOP - https://uiverse.io/asgardOP/light-shrimp-73 * MIT License - Copyright (c) 2023 Uiverse.io and its contributors * https://github.com/uiverse-io/galaxy/blob/main/LICENSE */3.button {4 width: 170px;5 height: 55px;6 border-radius: 10px;7 border: 1px solid gray;8 border-bottom: 2px solid rgb(77, 77, 77);9 display: flex;10 box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.349);11 align-items: center;12 justify-content: center;13 cursor: pointer;14 position: relative;15 transition: 0.4s;16 background: linear-gradient(140deg, white, rgb(214, 214, 214));17}18.button:hover {19 box-shadow: none;20 transform: scaleY(0.6);21 border-bottom: 2px solid rgb(77, 77, 77);22 background: linear-gradient(160deg, white, rgb(214, 214, 214));23}24.button:active {25 margin-top: 20px;26 transition: 0.05s;27}28.button::before {29 content: "";30 position: absolute;31 left: -1px;32 bottom: 0px;33 width: 170px;34 height: 0px;35 background: rgb(194, 194, 194);36 border-top: 0px solid black;37 border-bottom: 0px solid black;38 transition: height 0.4s, bottom 0.4s, opacity 0s 0.35s;39 opacity: 0;40 box-shadow: inset 0px -10px 10px rgba(167, 167, 167, 0.719);41 border-bottom-left-radius: 5px;42 border-bottom-right-radius: 5px;43}44.button:hover::before {45 height: 35px;46 bottom: -27px;47 opacity: 1;48 border-bottom: 1px solid black;49 transition: height 0.4s, bottom 0.4s;50}51.button:active::before {52 height: 18px;53 bottom: -9px;54 transition: height 0.05s, bottom 0.05s, opacity 0s 0s;55}56.button div {57 width: 150px;58 height: 40px;59 background: linear-gradient(180deg, rgba(212, 212, 212, 0.925), white);60 display: flex;61 align-items: center;62 justify-content: center;63 border-radius: 20px;64 font-weight: 900;65}66.button div svg {67 width: 20px;68 transform: rotate(40deg);69 margin-right: 5px;70}
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
/* * Author: asgardOP * Source: https://uiverse.io/asgardOP/light-shrimp-73 * License: MIT * Tags: #animation #btn #button #message #modern #simple #uiverse #white */
/* * From Uiverse.io by asgardOP - https://uiverse.io/asgardOP/light-shrimp-73 * MIT License - Copyright (c) 2023 Uiverse.io and its contributors * https://github.com/uiverse-io/galaxy/blob/main/LICENSE */
.button {
width: 170px;
height: 55px;
border-radius: 10px;
border: 1px solid gray;
border-bottom: 2px solid rgb(77, 77, 77);
display: flex;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.349);
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
transition: 0.4s;
background: linear-gradient(140deg, white, rgb(214, 214, 214));
}
.button:hover {
box-shadow: none;
transform: scaleY(0.6);
border-bottom: 2px solid rgb(77, 77, 77);
background: linear-gradient(160deg, white, rgb(214, 214, 214));
}
.button:active {
margin-top: 20px;
transition: 0.05s;
}
.button::before {
content: "";
position: absolute;
left: -1px;
bottom: 0px;
width: 170px;
height: 0px;
background: rgb(194, 194, 194);
border-top: 0px solid black;
border-bottom: 0px solid black;
transition: height 0.4s, bottom 0.4s, opacity 0s 0.35s;
opacity: 0;
box-shadow: inset 0px -10px 10px rgba(167, 167, 167, 0.719);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.button:hover::before {
height: 35px;
bottom: -27px;
opacity: 1;
border-bottom: 1px solid black;
transition: height 0.4s, bottom 0.4s;
}
.button:active::before {
height: 18px;
bottom: -9px;
transition: height 0.05s, bottom 0.05s, opacity 0s 0s;
}
.button div {
width: 150px;
height: 40px;
background: linear-gradient(180deg, rgba(212, 212, 212, 0.925), white);
display: flex;
align-items: center;
justify-content: center;
border-radius: 20px;
font-weight: 900;
}
.button div svg {
width: 20px;
transform: rotate(40deg);
margin-right: 5px;
}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.
Animation button created by asgardOP on Uiverse.io. Open source under the MIT license.
Community
You need to sign in before you can write a comment.