纯css实现搜索特效
代码语言:html
所属分类:搜索
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Compact Search Input</title>
<style>
html {
height: 100%;
}
body {
background: #E62878;
height: 100%;
width: 100%;
display: table;
}
.wrapper {
display: table-cell;
text-align: center;
vertical-align: middle;
}
.search {
position: relative;
display: inline-block;
text-align: center;
}
.search input {
width: 40px;
height: 40px;
padding: 0;
transition: all 0.4s cubic-bezier(0.5, -0.5, 0.5, 1.5);
transition-delay: 0.2s;
border: 3px solid white;
border-radius: 40px;
outline: none;
background: #E62878;
font-family: futura;
font-size: 14px;
color: transparent;
cursor: pointer;
}
.search input::-webki.........完整代码请登录后点击上方下载按钮下载查看
网友评论0