TweenMax实现一个弹出搜索框动画效果代码
代码语言:html
所属分类:搜索
代码描述:TweenMax实现一个弹出搜索框动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
<style>
* {
box-sizing: inherit;
margin: 0;
padding: 0;
}
html {
height: 100%;
box-sizing: border-box;
}
body {
width: 100%;
min-height: 100vh;
background-image: linear-gradient(to right, #4daf54, #3d8880);
display: flex;
align-items: center;
justify-content: center;
font-family: "PT Sans", sans-serif;
}
.search {
width: 450px;
height: 120px;
position: relative;
overflow: hidden;
}
.search-input {
width: 100%;
height: 100%;
padding: 0 65px 25px 60px;
position: absolute;
z-index: 1;
border: none;
outline: none;
background-color: rgba(255, 255, 255, 0.15);
color: #ddd;
font-size: 28px;
letter-spacing: 0.3px;
transform-origin: 10%;
transform: scaleX(0);
font-family: "PT Sans", sans-serif;
}
.search-button {
position: absolute;
right: 60px;
bottom: 33px;
width: 50px;
height: 50px;
border-radius: 50%;
border: 3px solid #fff;
background-color: transparent;
cursor: pointe.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0