open-props实现简洁登录表单效果代码

代码语言:html

所属分类:表单美化

代码描述:open-props实现简洁登录表单效果代码

代码标签: open-props 简洁 登录 表单

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  
  
  
<style>

@import "//repo.bfw.wiki/bfwrepo/css/formbeauty20241001.css" layer(support.demo);

/* 
  enable auto keyword interpolation  
  https://developer.chrome.com/docs/css-ui/animate-to-height-auto
*/
:root {
  interpolate-size: allow-keywords;
}

/* enable transitions on password input container */
.password {
  transition: 
    height .3s var(--ease-3),
    opacity .3s var(--ease-3);
}

/* reveal password when username is valid */
.username:not(:has(:user-valid)) + .password {
  height: 0;
  opacity: 0;
  overflow: clip;
}











@layer support.demo {
  body {
    display: grid;
    place-content: center;
    padding: var(--size-5);
    gap: var(--size-5);
  } 
  
  fieldset {
    display: block;
    
    > .password {
      margin-block: var(--size-3);
    }
  }
}
</style>



  
  
</head>

<body translate=&qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0