输入框锁定和解锁切换动画效果
代码语言:html
所属分类:表单美化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <titleLocked input field - CSS only</title> <style> @import url("https://fonts.googleapis.com/css?family=Fira+Sans:300&display=swap"); html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } html, body { height: 100vh; } body { display: flex; align-items: center; background: #cad1e7; color: #4a5568; height: 100%; font-size: 16px; font-family: "Fira Sans", sans-serif; } div { --field-size: 50px; --field-border-color: #ccc; margin: 0 auto; font-size: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); background: #ffffff; border-radius: 5px; position: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0