css实现一个搜索按钮点击弹出搜索框动画效果代码
代码语言:html
所属分类:搜索
代码描述:使用css实现一个搜索按钮点击后弹出一个完整的搜索框动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <style> body { background-color: #ff9800; color: #fff; margin: 0; } #content { position: absolute; height: 50px; width: 300px; margin-left: 170px; top: 50%; left: 50%; transform: translate(-50%, -50%); } #content.on { -webkit-animation-name: in-out; animation-name: in-out; -webkit-animation-duration: 0.7s; animation-duration: 0.7s; -webkit-animation-timing-function: linear; animation-timing-function: linear; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; } input { box-sizing: border-box; width: 50px; height: 5.........完整代码请登录后点击上方下载按钮下载查看
网友评论0