Modern Input by LeonKohli
Zoom
Saved
1 line⌘Z Undo
1<!--2 Author: LeonKohli3 Source: https://uiverse.io/LeonKohli/silly-dragonfly-824 License: MIT5 Tags: #input #modern #neon #neumorphism #search #uiverse6-->7<div class="neon-search-container">8 <div class="particle-container">9 <div class="particle">10 </div>11 <div class="particle">12 </div>13 <div class="particle">14 </div>15 <div class="particle">16 </div>17 <div class="particle">18 </div>19 <div class="particle">20 </div>21 <div class="particle">22 </div>23 <div class="particle">24 </div>25 </div>26 <div class="glow-container">27 <div class="glow-effect-left">28 </div>29 <div class="glow-effect-right">30 </div>31 <div class="search-bar">32 <div class="search-icon">33 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">34 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z">35 </path>36 </svg>37 </div>38 <input type="text" class="search-input" placeholder="Search..."/>39 <button class="filter-container">40 <div class="filter-icon">41 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">42 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z">43 </path>44 </svg>45 </div>46 </button>47 </div>48 </div>49</div>
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
<!--
Author: LeonKohli
Source: https://uiverse.io/LeonKohli/silly-dragonfly-82
License: MIT
Tags: #input #modern #neon #neumorphism #search #uiverse
-->
<div class="neon-search-container">
<div class="particle-container">
<div class="particle">
</div>
<div class="particle">
</div>
<div class="particle">
</div>
<div class="particle">
</div>
<div class="particle">
</div>
<div class="particle">
</div>
<div class="particle">
</div>
<div class="particle">
</div>
</div>
<div class="glow-container">
<div class="glow-effect-left">
</div>
<div class="glow-effect-right">
</div>
<div class="search-bar">
<div class="search-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z">
</path>
</svg>
</div>
<input type="text" class="search-input" placeholder="Search..."/>
<button class="filter-container">
<div class="filter-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z">
</path>
</svg>
</div>
</button>
</div>
</div>
</div>1/* * Author: LeonKohli * Source: https://uiverse.io/LeonKohli/silly-dragonfly-82 * License: MIT * Tags: #input #modern #neon #neumorphism #search #uiverse */2/* * From Uiverse.io by LeonKohli - https://uiverse.io/LeonKohli/silly-dragonfly-82 * MIT License - Copyright (c) 2023 Uiverse.io and its contributors * https://github.com/uiverse-io/galaxy/blob/main/LICENSE */3.neon-search-container {4 --background-color: rgb(1, 1, 1);5 --grid-color: rgb(20, 20, 20);6 --glow-color-1: rgba(227, 63, 183, 0.3);7 --glow-color-2: rgba(90, 73, 212, 0.3);8 --border-color-1: rgba(255, 100, 220, 1);9 --border-color-2: rgba(120, 100, 255, 1);10 --search-bar-gradient: linear-gradient( 135deg, rgba(0, 0, 0, 0.541) 0%, rgba(0, 0, 0, 0.226) 100% );11 --filter-button-gradient: linear-gradient( 135deg, rgba(120, 100, 255, 0.2) 0%, rgba(120, 100, 255, 0.1) 100% );12 width: 400px;13 height: 120px;14 position: relative;15 font-family: Arial, sans-serif;16}17.neon-search-container .glow-container {18 position: relative;19 width: 100%;20 height: 100%;21}22.neon-search-container .glow-effect-left, .neon-search-container .glow-effect-right {23 position: absolute;24 width: 150px;25 height: 150px;26 border-radius: 50%;27 filter: blur(30px);28 transition: all 0.3s ease;29}30.neon-search-container .glow-effect-left {31 top: -40px;32 left: -30px;33 background: radial-gradient(circle, var(--glow-color-1) 0%, transparent 70%);34}35.neon-search-container .glow-effect-right {36 bottom: -40px;37 right: -30px;38 background: radial-gradient(circle, var(--glow-color-2) 0%, transparent 70%);39}40.neon-search-container .search-bar {41 position: absolute;42 top: 50%;43 left: 50%;44 transform: translate(-50%, -50%);45 display: flex;46 align-items: center;47 width: 350px;48 height: 60px;49 background: var(--search-bar-gradient);50 border-radius: 8px;51 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);52 overflow: visible;53 transition: all 0.3s ease;54}55.neon-search-container .search-bar::before, .neon-search-container .search-bar::after {56 content: "";57 position: absolute;58 width: 60%;59 height: 60%;60 pointer-events: none;61 transition: all 0.3s ease;62}63.neon-search-container .search-bar::before {64 top: 0;65 left: 0;66 background: linear-gradient(to right, var(--border-color-1), transparent), linear-gradient(to bottom, var(--border-color-1), transparent);67 background-size: 100% 2px, 2px 100%;68 background-repeat: no-repeat;69 border-top-left-radius: 8px;70}71.neon-search-container .search-bar::after {72 bottom: 0;73 right: 0;74 background: linear-gradient(to left, var(--border-color-2), transparent), linear-gradient(to top, var(--border-color-2), transparent);75 background-size: 100% 2px, 2px 100%;76 background-repeat: no-repeat;77 background-position: bottom right;78 border-bottom-right-radius: 8px;79}80.neon-search-container .search-input {81 flex-grow: 1;82 height: 100%;83 padding: 0 20px;84 border: none;85 background-color: transparent;86 color: white;87 font-size: 18px;88 outline: none;89 transition: all 0.3s ease;90}91.neon-search-container .search-input::placeholder {92 color: rgba(255, 255, 255, 0.5);93 transition: all 0.3s ease;94}95.neon-search-container .search-icon, .neon-search-container .filter-icon {96 display: flex;97 justify-content: center;98 align-items: center;99 width: 24px;100 height: 24px;101 opacity: 0.7;102 transition: all 0.3s ease;103}104.neon-search-container .search-icon {105 margin-left: 20px;106}107.neon-search-container .search-icon svg, .neon-search-container .filter-icon svg {108 width: 100%;109 height: 100%;110 stroke: white;111 transition: all 0.3s ease;112}113.neon-search-container .filter-container {114 position: absolute;115 right: 10px;116 display: flex;117 justify-content: center;118 align-items: center;119 width: 40px;120 height: 40px;121 background: var(--filter-button-gradient);122 border-radius: 6px;123 border: 1px solid rgba(255, 255, 255, 0.1);124 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);125 transition: all 0.3s ease;126 cursor: pointer;127}128/* Animations */129.neon-search-container .search-bar:focus-within {130 box-shadow: 0 0 15px rgba(255, 100, 220, 0.3), 0 0 15px rgba(120, 100, 255, 0.3);131}132.neon-search-container .search-bar:focus-within::before, .neon-search-container .search-bar:focus-within::after {133 width: 70%;134 height: 70%;135}136.neon-search-container .search-input:focus::placeholder {137 opacity: 0;138 transform: translateX(-10px);139}140.neon-search-container .search-icon svg {141 animation: pulse 2s infinite;142}143.neon-search-container .filter-container:hover {144 background: var(--filter-button-gradient);145 transform: scale(1.05);146 box-shadow: 0 0 15px rgba(120, 100, 255, 0.5);147}148.neon-search-container .filter-container:hover .filter-icon svg {149 transform: rotate(15deg);150}151@keyframes pulse {152 0% {153 transform: scale(1);154 }155 50% {156 transform: scale(1.1);157 }158 100% {159 transform: scale(1);160 }161}162.neon-search-container:hover .glow-effect-left {163 transform: translate(5px, 5px);164}165.neon-search-container:hover .glow-effect-right {166 transform: translate(-5px, -5px);167}168/* Particle effect */169/* Enhanced Particle effect */170.neon-search-container .particle-container {171 position: absolute;172 top: 0;173 left: 0;174 width: 100%;175 height: 100%;176 overflow: hidden;177 z-index: 1;178 pointer-events: none;179}180.neon-search-container .particle {181 position: absolute;182 width: 3px;183 height: 3px;184 background-color: rgba(255, 255, 255, 0.7);185 border-radius: 50%;186 animation: particleFloat 20s linear infinite;187}188.neon-search-container .particle:nth-child(1) {189 top: 20%;190 left: 20%;191 animation-delay: 0s;192}193.neon-search-container .particle:nth-child(2) {194 top: 40%;195 left: 10%;196 animation-delay: -2s;197}198.neon-search-container .particle:nth-child(3) {199 top: 10%;200 left: 50%;201 animation-delay: -4s;202}203.neon-search-container .particle:nth-child(4) {204 top: 30%;205 left: 30%;206 animation-delay: -6s;207}208.neon-search-container .particle:nth-child(5) {209 top: 5%;210 left: 70%;211 animation-delay: -8s;212}213.neon-search-container .particle:nth-child(6) {214 top: 60%;215 left: 80%;216 animation-delay: -10s;217}218.neon-search-container .particle:nth-child(7) {219 top: 70%;220 left: 5%;221 animation-delay: -12s;222}223.neon-search-container .particle:nth-child(8) {224 top: 80%;225 left: 60%;226 animation-delay: -14s;227}228@keyframes particleFloat {229 0% {230 transform: translate(0, 0) scale(1);231 opacity: 0;232 }233 10% {234 opacity: 1;235 }236 90% {237 opacity: 1;238 }239 100% {240 transform: translate(200px, 300px) scale(0.2);241 opacity: 0;242 }243}
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/* * Author: LeonKohli * Source: https://uiverse.io/LeonKohli/silly-dragonfly-82 * License: MIT * Tags: #input #modern #neon #neumorphism #search #uiverse */
/* * From Uiverse.io by LeonKohli - https://uiverse.io/LeonKohli/silly-dragonfly-82 * MIT License - Copyright (c) 2023 Uiverse.io and its contributors * https://github.com/uiverse-io/galaxy/blob/main/LICENSE */
.neon-search-container {
--background-color: rgb(1, 1, 1);
--grid-color: rgb(20, 20, 20);
--glow-color-1: rgba(227, 63, 183, 0.3);
--glow-color-2: rgba(90, 73, 212, 0.3);
--border-color-1: rgba(255, 100, 220, 1);
--border-color-2: rgba(120, 100, 255, 1);
--search-bar-gradient: linear-gradient( 135deg, rgba(0, 0, 0, 0.541) 0%, rgba(0, 0, 0, 0.226) 100% );
--filter-button-gradient: linear-gradient( 135deg, rgba(120, 100, 255, 0.2) 0%, rgba(120, 100, 255, 0.1) 100% );
width: 400px;
height: 120px;
position: relative;
font-family: Arial, sans-serif;
}
.neon-search-container .glow-container {
position: relative;
width: 100%;
height: 100%;
}
.neon-search-container .glow-effect-left, .neon-search-container .glow-effect-right {
position: absolute;
width: 150px;
height: 150px;
border-radius: 50%;
filter: blur(30px);
transition: all 0.3s ease;
}
.neon-search-container .glow-effect-left {
top: -40px;
left: -30px;
background: radial-gradient(circle, var(--glow-color-1) 0%, transparent 70%);
}
.neon-search-container .glow-effect-right {
bottom: -40px;
right: -30px;
background: radial-gradient(circle, var(--glow-color-2) 0%, transparent 70%);
}
.neon-search-container .search-bar {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
width: 350px;
height: 60px;
background: var(--search-bar-gradient);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: visible;
transition: all 0.3s ease;
}
.neon-search-container .search-bar::before, .neon-search-container .search-bar::after {
content: "";
position: absolute;
width: 60%;
height: 60%;
pointer-events: none;
transition: all 0.3s ease;
}
.neon-search-container .search-bar::before {
top: 0;
left: 0;
background: linear-gradient(to right, var(--border-color-1), transparent), linear-gradient(to bottom, var(--border-color-1), transparent);
background-size: 100% 2px, 2px 100%;
background-repeat: no-repeat;
border-top-left-radius: 8px;
}
.neon-search-container .search-bar::after {
bottom: 0;
right: 0;
background: linear-gradient(to left, var(--border-color-2), transparent), linear-gradient(to top, var(--border-color-2), transparent);
background-size: 100% 2px, 2px 100%;
background-repeat: no-repeat;
background-position: bottom right;
border-bottom-right-radius: 8px;
}
.neon-search-container .search-input {
flex-grow: 1;
height: 100%;
padding: 0 20px;
border: none;
background-color: transparent;
color: white;
font-size: 18px;
outline: none;
transition: all 0.3s ease;
}
.neon-search-container .search-input::placeholder {
color: rgba(255, 255, 255, 0.5);
transition: all 0.3s ease;
}
.neon-search-container .search-icon, .neon-search-container .filter-icon {
display: flex;
justify-content: center;
align-items: center;
width: 24px;
height: 24px;
opacity: 0.7;
transition: all 0.3s ease;
}
.neon-search-container .search-icon {
margin-left: 20px;
}
.neon-search-container .search-icon svg, .neon-search-container .filter-icon svg {
width: 100%;
height: 100%;
stroke: white;
transition: all 0.3s ease;
}
.neon-search-container .filter-container {
position: absolute;
right: 10px;
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
background: var(--filter-button-gradient);
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
cursor: pointer;
}
/* Animations */
.neon-search-container .search-bar:focus-within {
box-shadow: 0 0 15px rgba(255, 100, 220, 0.3), 0 0 15px rgba(120, 100, 255, 0.3);
}
.neon-search-container .search-bar:focus-within::before, .neon-search-container .search-bar:focus-within::after {
width: 70%;
height: 70%;
}
.neon-search-container .search-input:focus::placeholder {
opacity: 0;
transform: translateX(-10px);
}
.neon-search-container .search-icon svg {
animation: pulse 2s infinite;
}
.neon-search-container .filter-container:hover {
background: var(--filter-button-gradient);
transform: scale(1.05);
box-shadow: 0 0 15px rgba(120, 100, 255, 0.5);
}
.neon-search-container .filter-container:hover .filter-icon svg {
transform: rotate(15deg);
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
.neon-search-container:hover .glow-effect-left {
transform: translate(5px, 5px);
}
.neon-search-container:hover .glow-effect-right {
transform: translate(-5px, -5px);
}
/* Particle effect */
/* Enhanced Particle effect */
.neon-search-container .particle-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 1;
pointer-events: none;
}
.neon-search-container .particle {
position: absolute;
width: 3px;
height: 3px;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 50%;
animation: particleFloat 20s linear infinite;
}
.neon-search-container .particle:nth-child(1) {
top: 20%;
left: 20%;
animation-delay: 0s;
}
.neon-search-container .particle:nth-child(2) {
top: 40%;
left: 10%;
animation-delay: -2s;
}
.neon-search-container .particle:nth-child(3) {
top: 10%;
left: 50%;
animation-delay: -4s;
}
.neon-search-container .particle:nth-child(4) {
top: 30%;
left: 30%;
animation-delay: -6s;
}
.neon-search-container .particle:nth-child(5) {
top: 5%;
left: 70%;
animation-delay: -8s;
}
.neon-search-container .particle:nth-child(6) {
top: 60%;
left: 80%;
animation-delay: -10s;
}
.neon-search-container .particle:nth-child(7) {
top: 70%;
left: 5%;
animation-delay: -12s;
}
.neon-search-container .particle:nth-child(8) {
top: 80%;
left: 60%;
animation-delay: -14s;
}
@keyframes particleFloat {
0% {
transform: translate(0, 0) scale(1);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translate(200px, 300px) scale(0.2);
opacity: 0;
}
}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.
Neon input created by LeonKohli on Uiverse.io. Open source under the MIT license.
Community
You need to sign in before you can write a comment.