密码解锁界面动画效果
代码语言:html
所属分类:表单美化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:300,400,500,700&display=swap'> <style> .password { --svg-color: #808390; --text-color: #414856; --weak-color: #F04545; --medium-color: #FFA850; --strong-color: #47C796; --width: 180px; --height: 30px; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; position: relative; } .password input { background: none; border: 0; outline: none; width: 22px; height: var(--height); z-index: 1; position: relative; -webkit-appearance: none; -moz-appearance: none; appearance: none; -webkit-transition: all .6s ease-out; transition: all .6s ease-out; cursor: pointer; color: var(--text-color); font: 400 14px 'Poppins', sans-serif; } .password .check { display: none; width: var(--height); height: var(--height); padding: 5px 2px 5px 8px; box-sizing: border-box; position: absolute; right: 0; z-index: 3; cursor: pointer; } .password .check svg { fill: none; stroke: var(--strong-color); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; stroke-dashoffset: 26; stroke-dasharray: 26; -webkit-transition: stroke-dashoffset .6s ease; transition: str.........完整代码请登录后点击上方下载按钮下载查看
网友评论0