Back
Input
1 2<div class="input-wrapper"> 3 <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 4 <g data-name="Layer 2"> 5 <g data-name="inbox"> 6 <rect 7 width="24" 8 height="24" 9 transform="rotate(180 12 12)"10 opacity="0"11 ></rect>12 <path13 d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H16a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1H5.62z"14 ></path>15 </g>16 </g>17 </svg>18 <input type="text" name="text" class="input" placeholder="info@gmail.com" />19 <button class="Subscribe-btn">20 <svg21 xmlns="http://www.w3.org/2000/svg"22 width="30"23 height="10"24 viewBox="0 0 38 15"25 class="arrow"26 >27 <path28 d="M10 7.519l-.939-.344h0l.939.344zm14.386-1.205l-.981-.192.981.192zm1.276 5.509l.537.843.148-.094.107-.139-.792-.611zm4.819-4.304l-.385-.923h0l.385.923zm7.227.707a1 1 0 0 0 0-1.414L31.343.448a1 1 0 0 0-1.414 0 1 1 0 0 0 0 1.414l5.657 5.657-5.657 5.657a1 1 0 0 0 1.414 1.414l6.364-6.364zM1 7.519l.554.833.029-.019.094-.061.361-.23 1.277-.77c1.054-.609 2.397-1.32 3.629-1.787.617-.234 1.17-.392 1.623-.455.477-.066.707-.008.788.034.025.013.031.021.039.034a.56.56 0 0 1 .058.235c.029.327-.047.906-.39 1.842l1.878.689c.383-1.044.571-1.949.505-2.705-.072-.815-.45-1.493-1.16-1.865-.627-.329-1.358-.332-1.993-.244-.659.092-1.367.305-2.056.566-1.381.523-2.833 1.297-3.921 1.925l-1.341.808-.385.245-.104.068-.028.018c-.011.007-.011.007.543.84zm8.061-.344c-.198.54-.328 1.038-.36 1.484-.032.441.024.94.325 1.364.319.45.786.64 1.21.697.403.054.824-.001 1.21-.09.775-.179 1.694-.566 2.633-1.014l3.023-1.554c2.115-1.122 4.107-2.168 5.476-2.524.329-.086.573-.117.742-.115s.195.038.161.014c-.15-.105.085-.139-.076.685l1.963.384c.192-.98.152-2.083-.74-2.707-.405-.283-.868-.37-1.28-.376s-.849.069-1.274.179c-1.65.43-3.888 1.621-5.909 2.693l-2.948 1.517c-.92.439-1.673.743-2.221.87-.276.064-.429.065-.492.057-.043-.006.066.003.155.127.07.099.024.131.038-.063.014-.187.078-.49.243-.94l-1.878-.689zm14.343-1.053c-.361 1.844-.474 3.185-.413 4.161.059.95.294 1.72.811 2.215.567.544 1.242.546 1.664.459a2.34 2.34 0 0 0 .502-.167l.15-.076.049-.028.018-.011c.013-.008.013-.008-.524-.852l-.536-.844.019-.012c-.038.018-.064.027-.084.032-.037.008.053-.013.125.056.021.02-.151-.135-.198-.895-.046-.734.034-1.887.38-3.652l-1.963-.384zm2.257 5.701l.791.611.024-.031.08-.101.311-.377 1.093-1.213c.922-.954 2.005-1.894 2.904-2.27l-.771-1.846c-1.31.547-2.637 1.758-3.572 2.725l-1.184 1.314-.341.414-.093.117-.025.032c-.01.013-.01.013.781.624zm5.204-3.381c.989-.413 1.791-.42 2.697-.307.871.108 2.083.385 3.437.385v-2c-1.197 0-2.041-.226-3.19-.369-1.114-.139-2.297-.146-3.715.447l.771 1.846z"29 ></path></svg30 >Subscribe31 </button>32</div>
1 2.input-wrapper { 3 width: fit-content; 4 height: 45px; 5 border-radius: 20px; 6 padding: 5px; 7 box-sizing: content-box; 8 display: flex; 9 align-items: center;10 background-color: #292524;11}12 13.icon {14 width: 30px;15 fill: rgb(255, 255, 255);16 margin-left: 8px;17 transition: all 0.3s;18}19.input {20 max-width: 170px;21 height: 100%;22 border: none;23 outline: none;24 padding-left: 15px;25 background-color: #292524;26 color: white;27 font-size: 1em;28}29.input:-webkit-autofill {30 -webkit-box-shadow: 0 0 0px 1000px #292524 inset;31 -webkit-text-fill-color: #ffffff;32}33.Subscribe-btn {34 height: 100%;35 width: 95px;36 border: none;37 border-radius: 15px;38 color: rgb(0, 0, 0);39 cursor: pointer;40 background-color: #ffffff;41 font-weight: 500;42 overflow: hidden;43 display: flex;44 align-items: center;45 justify-content: center;46 position: relative;47 transition: all 0.3s;48}49.arrow {50 /* display: none; */51 position: absolute;52 margin-right: 150px;53 transition: all 0.3s;54}55.input-wrapper:active .icon {56 transform: scale(1.3);57}58.Subscribe-btn:hover {59 color: white;60}61.Subscribe-btn:hover .arrow {62 margin-right: 0;63 animation: jello-vertical 0.9s both;64 transform-origin: right;65}66 67@keyframes jello-vertical {68 0% {69 transform: scale3d(1, 1, 1);70 }71 30% {72 transform: scale3d(0.75, 1.25, 1);73 }74 40% {75 transform: scale3d(1.25, 0.75, 1);76 }77 50% {78 transform: scale3d(0.85, 1.15, 1);79 }80 65% {81 transform: scale3d(1.05, 0.95, 1);82 }83 75% {84 transform: scale3d(0.95, 1.05, 1);85 }86 100% {87 transform: scale3d(1, 1, 1);88 }89}90.Subscribe-btn:active {91 transform: scale(0.9);92}
MIT License