css实现炫酷input输入框悬浮边框动画效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现炫酷input输入框悬浮边框动画效果代码
代码标签: css 炫酷i nput 输入框 悬浮 边框 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } :root { --background-size: unquote("min(100vw, 40em)"); } html { font-size: calc(100% + 0.5vw); } @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: 0.001s !important; } } .container { background: linear-gradient(100deg, #402, #006); padding: 2em; min-height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #ffffff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 55'%3E%3Cg fill='none' fill-rule='evenodd' stroke='%23fff' stroke-width='7' opacity='.1'%3E%3Cpath d='M-345 34.5s57.5-13.8 115-13.8 115 13.8 115 13.8S-57.5 48.3 0 48.3s115-13.8 115-13.8 57.5-13.8 115-13.8 115 13.8 115 13.8 57.5 13.8 115 13.8 115-13.8 115-13.8'/%3E%3Cpath d='M-345 20.7s57.5-13.8 115-13.8 115 13.8 115 13.8S-57.5 34.5 0 34.5s115-13.8 115-13.8S172.5 6.9 230 6.9s115 13.8 115 13.8 57.5 13.8 115 13.8 115-13.8 115-13.8m-920 27.6s57.5-13.8 115-13.8 115 13.8 115 13.8S-57.5 62.1 0 62.1s115-13.8 115-13.8 57.5-13.8 115-13.8 115 1.........完整代码请登录后点击上方下载按钮下载查看
网友评论0