html在搜索栏中加入放大镜,CSS3 搜索条动画(放大镜图标展开为长方形输入框)...

CSS

语言:

CSSSCSS

确定

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,600);

body {

background-color: #ff9800;

}

#content {

position: absolute;

top: 30%;

left: 50%;

width: 200px;

height: 50px;

margin: 0 auto;

}

.circle {

width: 42px;

height: 42px;

border: 4px solid #fff;

border-radius: 50%;

cursor: pointer;

transition: all 400ms ease-in-out;

}

.hide {

width: 0;

transition: all 400ms ease-in-out;

}

input,

input:focus {

background: none;

margin-left: 20px;

padding: 10px 0;

width: 260px;

border: none;

color: #fff;

font-size: 16px;

font-weight: 300;

font-family: Open Sans, Arial, Helvetica;

outline: 0;

}

.line {

width: 22px;

height: 4px;

background-color: #fff;

transform: rotate(45deg);

margin-top: 0px;

margin-left: 38px;

transition: all 400ms ease-in-out;

}

.close {

margin-top: -25px;

margin-left: 12px;

cursor: pointer;

transition: all 400ms ease-in-out;

}

.close:after {

content: "";

display: block;

width: 22px;

height: 4px;

background-color: #fff;

transform: rotate(90deg);

margin-top: -25px !important;

margin-left: 0;

cursor: pointer;

transition: all 400ms ease-in-out;

}

.close:hover {

transform: rotate(225deg);

}

.square {

margin-left: -260px;

border-radius: 0;

width: 300px;

ttransition: all 400ms ease-in-out;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值