data-original-width="1920" src="https://i.ytimg.com/vi/XF_vGFMt-20/maxresdefault.jpg" />

Please subscribe our channel and support me.
Please like and 1 comment this video.


If you are visiting my channel for the first time then please subscribe
Go to my Youtube channel : class="simple-endpoint" dir="auto" href="https://www.youtube.com/channel/UCP43UNTq7UZD1cu_qTbmC9A"
spellcheck="false">https://www.youtube.com






Html Code




<div class="container">
<form action="#" class="form">
<div class="search">
<input type="search" class="input" placeholder="Search..">
<div class="search-icon">
<!-- SVG Icon -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 122.879 119.799">
<path d="M49.988,0h0.016v0.007C63.803,0.011,76.298,5.608,85.34,14.652c9.027,9.031,14.619,21.515,14.628,35.303h0.007v0.033v0.04 h-0.007c-0.005,5.557-0.917,10.905-2.594,15.892c-0.281,0.837-0.575,1.641-0.877,2.409v0.007c-1.446,3.66-3.315,7.12-5.547,10.307 l29.082,26.139l0.018,0.016l0.157,0.146l0.011,0.011c1.642,1.563,2.536,3.656,2.649,5.78c0.11,2.1-0.543,4.248-1.979,5.971 l-0.011,0.016l-0.175,0.203l-0.035,0.035l-0.146,0.16l-0.016,0.021c-1.565,1.642-3.654,2.534-5.78,2.646 c-2.097,0.111-4.247-0.54-5.971-1.978l-0.015-0.011l-0.204-0.175l-0.029-0.024L78.761,90.865c-0.88,0.62-1.778,1.209-2.687,1.765 c-1.233,0.755-2.51,1.466-3.813,2.115c-6.699,3.342-14.269,5.222-22.272,5.222v0.007h-0.016v-0.007 c-13.799-0.004-26.296-5.601-35.338-14.645C5.605,76.291,0.016,63.805,0.007,50.021H0v-0.033v-0.016h0.007 c0.004-13.799,5.601-26.296,14.645-35.338C23.683,5.608,36.167,0.016,49.955,0.007V0H49.988L49.988,0z M50.004,11.21v0.007h-0.016 h-0.033V11.21c-10.686,0.007-20.372,4.35-27.384,11.359C15.56,29.578,11.213,39.274,11.21,49.973h0.007v0.016v0.033H11.21 c0.007,10.686,4.347,20.367,11.359,27.381c7.009,7.012,16.705,11.359,27.403,11.361v-0.007h0.016h0.033v0.007 c10.686-0.007,20.368-4.348,27.382-11.359c7.011-7.009,11.358-16.702,11.36-27.4h-0.006v-0.016v-0.033h0.006 c-0.006-10.686-4.35-20.372-11.358-27.384C70.396,15.56,60.703,11.213,50.004,11.21L50.004,11.21z"/>
</svg>
</div>
</div>
</form>
</div>




Css Code



body{
margin: 0;
padding: 0;
font-family: roboto;
background: #42a7ff;
transform: scale(1) !important;
}
svg{
width: 18px;
height: 18px;
}
.container{
width: 100%;
height: 90vh;
display: flex;
align-items: center;
justify-content: center;
}

.search{
position: relative;
height: 40px;
width: 300px;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 5px 10px #0006;

}
.search input{
position: absolute;
width: -webkit-fill-available;
height: -webkit-fill-available;
border: none;
outline: none;
border-radius: 4px;
padding: 5px 45px 5px 15px;
z-index: 0;
color: #666;
}

.search .search-icon, .search .close{
background: #fff;
position: absolute;
width: 40px;
height: 40px;
right: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
cursor: pointer;
transition:all 0.4s;
}
.search .search-icon:hover{
background: #dfeeff;
}
.search .search-icon::before{
content: "";
width: 1.5px;
height: 40%;
right: 38px;
position: absolute;
background: #dfeeff;
}
.search .search-icon svg{
fill: #0084ff;
}
.search .close{
width: 30px;
right: 40px;
color: #42a7ff;
line-height: 1;
font-size: 24px;
user-select: none;
}
.search .close:hover{
color: #0084ff;
text-shadow: 0 0 20px #0084ff;
}




Js Code



document.querySelector(".input").addEventListener("input", function(){
var input = this, value = this.value, close = document.querySelector(".close");
if (value &&! close) {
close = document.createElement("div");
close.classList.add("close"), close.innerHTML = "×";
this.parentElement.append(close);
close.addEventListener("click", function () {
input.value = null, input.focus(), this.remove();
});
}
if (! value && close) { close.remove() }
});




@ Recommendations Videos


blogger theme design : spellcheck="false">https://youtu.be/DAIJTjRzxLk


Login Form : spellcheck="false">https://youtu.be/HWbAr1XN3Lc


Forms design : spellcheck="false">https://youtu.be/M2ERkDXjEuw


Responsive CSS card : spellcheck="false">https://youtu.be/Ol9_5cYtAaw


Navigation design : spellcheck="false">https://youtu.be/LNEgZBdWPGM



Disclaimer video is for educational purpose only. Copyright Disclaimer Under Section 107 of the Copyright Act 1976,
allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and
research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational
or personal use tips the balance in favor of fair use .


Thanks..