webgl+css实现炫酷落叶三维背景引导页落地页搜索页标签页代码
代码语言:html
所属分类:其他
代码描述:webgl+css实现炫酷落叶三维背景引导页落地页搜索页标签页代码
代码标签: webgl css 炫酷 落叶 三维 背景 引导页 落地页 搜索页 标签页 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html> <head> <meta charset="utf-8"> <meta content="en-us" http-equiv="Content-Language"> <meta name="viewport" content="width=device-width, initial-scale=0.9"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.7.0.css"> <script type="text/javascript"> var d = new Date() var time = d.getHours() if (time < 24) { document.getElementById("title").innerHTML = "Good evening!"; } if (time < 19) { document.getElementById("title").innerHTML = "Good afternoon!"; } if (time < 12) { document.getElementById("title").innerHTML = "Good morning!"; } if (time < 5) { document.getElementById("title").innerHTML = "Go to sleep!"; } </script> <style> * { padding: 0; margin: 0; } .icon { width: 3em; height: 3em; max-width: 72px; font-size: 2em; /* Adjust size as needed */ color: #fff; /* Match your original design */ display: flex; align-items: center; justify-content: center; } body { text-align: center; background-repeat: no-repeat; background-color: #353535; } #search_input { width: 90%; height: 40px; background-color: transparent; border: none; outline: 0; font-size: 16px; color: #4a4266; padding: 0 10px; border-radius: 50px } .search_part { margin-bottom: 10px; margin-top: 90px; } span { display: block; font-size: 12px; overflow: hidden; padding-left: 2px; vertical-align: middle; } .search_bar { box-shadow: 0 0 5px rgba(70,70,40,.255); -webkit-animation: fadeIn 2.5s; animation: fadeIn 2.5s; background-color: transparent; border-radius: 3px; display: table; vertical-align: middle; width: 80%; height: 20px; max-width: 400px; margin: 10px auto; } #search_submit { outline: 0; height: 40px; float: right; color: #4a4266; font-size: 18px; font-weight: 500; border: none; background-color: transparent; padding: 0 13px 0 13px } #content { width: 100%; text-align: center; padding-top: 25px; padding-bottom: 15px; } .box { -webkit-animation: fadeInDown 1s; animation: fadeInDown 1s; position: relative; display: inline-block; width: 75px; border: 0; } .box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0; } .url { color: #fff; height: 1.5em; line-height: 1.5em; width: 72px; font-size: 0.75em; white-space: nowrap; overflow: hidden; margin: auto; -webkit-border-top-right-radius: 5px; -webkit-border-bottom-right-radius: 5px; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis; padding-top: 3px; padding-bottom: 8px; } .icon { width: 3em; height: 3em; max-width: 72px; } #app-items { width: 100%; max-width: 400px; margin: 0px auto; text-align: center; background-color: transparent; ; padding-top: 0px; padding-bottom: 15px; } .title { background-color: #fffffff; font-size: 16px; height: 30px; line-height: 30px; padding: 0 10px 0 20px; color: #fff; } #yiyan { width: 100%; max-width: 400px; margin: 0px auto; text-align: center; background-color: transparent; padding-top: 0px; padding-bottom: 15px; } .shuxing { color: #fff; font-size: 12px; height: 30px; line-height: 20px; padding: 0 10px 0 20px; } @-webkit-keyframes flipInX { 0% { -webkit-transform: perspective(400px) rotateX(90deg); transform: perspective(400px) rotateX(90deg); opacity: 0 } 40% { -webkit-transform: perspective(400px) rotateX(-10deg); transform: perspective(400px) rotateX(-10deg) } 70% { -webkit-transform: perspective(400px) rotateX(10deg); transform: perspective(400px) rotateX(10deg) } 100% { -webkit-transform: perspective(400px) rotateX(0); transform: perspective(400px) rotateX(0); opacity: 1 } } @keyframes flipInX { 0% { -webkit-transform: perspective(400px) rotateX(90deg); -ms-transform: perspective(400px) rotateX(90deg); transform: perspective(400px) rotateX(90deg); opacity: 0 } 40% { -webkit-transform: perspective(400px) rotateX(-10deg); -ms-transform: perspective(400px) rotateX(-10deg); transform: perspective(400px) rotateX(-10deg) } 70% { -webkit-transform: perspective(400px) rotateX(10deg); -ms-transform: perspective(400px) rotateX(10deg); transform: perspective(400px) rotateX(10deg) } 100% { -webkit-transform: perspective(400px) rotateX(0); -ms-transform: perspective(400px) rotateX(0); transform: perspective(400px) rotateX(0); opacity: 1 } } @-webkit-keyframes fadeIn { 0% { opacity: 0 } 100% { opacity: 1 } } @keyframes fadeIn { 0% { opacity: 0 } 100% { opacity: 1 } } @-webkit-keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translateY(-20px); transform: translateY(-20px) } 100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0) } } @keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translateY(-20px); -ms-transform: translateY(-20px); transform: translateY(-20px) } 100% { opacity: 1; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0) } } </style> <style> canvas { padding: 0; margin: 0; position: absolute; z-index: -1; left: 0px; } #search_input { width: 100%; height: 40px; background-color: transparent; border: none; outline: 0; font-size: 16px; color: #000000; } /*翻译 搜索框边距 下边距︰ 30px; 上边距︰ 20px; */ .search_part { margin-bottom: 10px; margin-top: 40px; } /*翻译 跨度样式 显示︰ 阻止; 溢出︰ 隐藏; 左填充︰ 5px; 垂直对齐︰ 居中; */ .search_bar span { display: block; font-size: 12px; overflow: hidden; padding-left: 2px; margin-right: 42px; vertical-align: middle; } .search_bar span i { display: none; float: right; width: 35px; height: 40px; background-size: 16px; } .search_bar .si { margin: 0 38px 0 10px; } li { list-style: none; } /*搜索建议条*/ #suggest { position: absolute; left: -1px; right: -1px; top: 40px; border: 1px solid #ccc; background: #fff; line-height: 40px; } #suggest li { border-bottom: 1px solid #ccc; text-align: left; padding-left: 16px; } #suggest li:active { background: #F0F0F0; } #suggest li b { float: right; width: 44px; height: 40px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAI5JREFUSEtjZCACLF261J6RkbELpPT///9l0dHRB4nQRlgJ0ODny5Yt+w/CIDZhHUSqgBkKo4nURljZqMHwMBohQQFK/ECvnkT3LgX8kyAzGZATPwWGgTMPSiYCGvyEWgYiGfyEAcjxoKaroWZ5EM52QBUjJLkRExajQUH7Qgg5E4HYxMQLUWpgmYiUxA8AOdLMz+iDKvIAAAAASUVORK5CYII=) no-repeat scroll center center #fff; background-size: 11px; } #suggest .close { text-align: right; font-size: 14px; color: #888; padding-right: 12px; } .search_bar.........完整代码请登录后点击上方下载按钮下载查看
网友评论0