html5登录玻璃界面特效
发布时间:2023-12-12 16:20:06 作者:你的美,让我痴迷 我要评论
本文主要介绍了html5登录玻璃界面特效,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
(福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun)
本文主要介绍了html5登录玻璃界面特效,废话不多说,具体如下:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"></meta> <title>Document</title> <style> html, body { margin: 0; padding: 0; font-family: "PingFang SC", "Microsoft Yahei", sans-serif; } .container { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; background: url("https://tse3-mm.cn.bing.net/th/id/OIP-C.8lHGYyoBPuSLsS6yFB5ACwHaEK?w=321&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7") fixed no-repeat; background-size: cover; } .login-form { width: 240px; height: 220px; display: flex; flex-direction: column; padding: 40px; text-align: center; position: relative; z-index: 100; background: inherit; border-radius: 18px; overflow: hidden; } .login-form::before { content: ""; width: calc(100% + 20px); height: calc(100% + 20px); background: inherit; box-shadow: inset 0 0 0 200px rgba(255, 255, 255, 0.25); position: absolute; top: -10px; left: -10px; z-index: -1; filter: blur(6px); overflow: hidden; } .login-form h2 { font-size: 18px; font-weight: 400; color: #3d5245; } .login-form input, .login-form button { margin: 6px 0; height: 36px; border: none; background-color: rgba(255, 255, 255, 0.3); border-radius: 4px; padding: 0 14px; color: #3d5245; } .login-form input::placeholder { color: #3d5245; } .login-form button { margin-top: 24px; background-color: rgba(57, 88, 69, 0.4); color: white; position: relative; overflow: hidden; cursor: pointer; transition: 0.4s; } .login-form button:hover { background-color: rgba(12, 80, 38, 0.67); } .login-form button::before, .login-form button::after { content: ""; display: block; width: 80px; height: 100%; background: rgba(179, 255, 210, 0.5); opacity: 0.5; position: absolute; left: 0; top: 0; transform: skewX(-15deg); filter: blur(30px); overflow: hidden; transform: translateX(-100px); } .login-form button::after { width: 40px; background: rgba(179, 255, 210, 0.3); left: 60px; filter: blur(5px); opacity: 0; } .login-form button:hover::before { transition: 1s; transform: translateX(320px); opacity: 0.7; } .login-form button:hover::after { transition: 1s; transform: translateX(320px); opacity: 1; } </style> </head> <body> <div> <div class="container"> <form action="#" class="login-form"> <h2>登录</h2> <input type="text" name="username" placeholder="用户名"> <input type="password" name="password" placeholder="密码"> <button type="submit">登录</button> </form> </div> </div> </body> </html>
到此这篇关于html5登录玻璃界面特效的文章就介绍到这了,更多相关html5登录玻璃内容请搜索程序员之家以前的文章或继续浏览下面的相关文章,希望大家以后多多支持程序员之家!
相关文章
- 本文主要介绍了html5登录玻璃界面特效,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧2023-12-12
- 学习Canvas的时候,打算描绘一个矩形并测试清除画布方法时,但是发现画布渲染不出来,本文就来介绍一下该问题的解决,具有一定的参考价值,感兴趣的可以了解一下2023-12-05
- 实际开发中,小程序和H5往往有很多业务场景需要来回跳转,本文就来介绍一下Html5页面跳转小程序的三种方式,感兴趣的可以了解一下2023-12-04
- HTML5标签是HTML语言的最新版本引入的一些新的标签,这些标签用于定义网页内容的结构和语义,相比于以前的HTML版本,HTML5标签提供了更加语义化的元素,本文就给大家介绍HTM2023-11-07
elementUI中el-date-picker如何禁用指定日期之前或之后的日期
这篇文章介绍elementUI中el-date-picker禁用指定日期之前或之后的日期,通过配置picker-options配置指定禁用日期(pickerOptions写到data里面),感兴趣的朋友跟随小编一起2023-10-18meta标签name="referrer"属性简介和用法小结
HTML<meta>标签name="referrer"属性主要用于控制网页发送给服务器的referrer信息,可以告诉服务器端用户是从哪个页面来到当前网页的,本篇文章给大家介绍me2023-10-18- 扫描二维码是很常见的一种功能,本文就来介绍一下html5项目实现扫描二维码功能,具有一定的参考价值,感兴趣的可以了解一下2023-10-07
- HTML5的上传API可以支持同时选择多个文件和选择单个文件夹,但不支持同时选择多个文件夹,本文就来实现一下HTML5实现同时选择多个文件夹上传的使用示例,具有一定的参考价2023-09-28
- HTML5中的video标签用于播放视频文件的,本文介绍了Html5 video 标签 src 用数据流方式播放视频,具有一定的参考价值,感兴趣的可以了解一下2023-09-27
H5使用Vant自适应布局(postcss-pxtorem)
本文将介绍如何使用Vant组件库中的自适应布局来实现H5页面的优化和适配,可以使H5页面达到更佳的用户体验,具有一定的参考价值,感兴趣的可以了解一下2023-09-20
最新评论