下拉菜单选择动画交互效果

代码语言:html

所属分类:表单美化

代码描述:下拉菜单选择动画交互效果

代码标签: 交互 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500&display=swap");
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background: #efeff0;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
}

.folder {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 450px;
}

.shared-user {
  -webkit-box-align: center;
          align-items: center;
  color: #6a696a;
  display: -webkit-inline-box;
  display: inline-flex;
  font-weight: 500;
  margin-left: 5px;
  outline: none;
  text-decoration: none;
}
.shared-user__avatar {
  width: 15px;
  height: 15px;
  margin-right: 3px;
}

.folder-summary {
  padding: 15px 20px 15px 15px;
  cursor: pointer;
  display: -webkit-box;
  display: flex;
  line-height: 1;
  height: 80px;
  position: relative;
}
.folder-summary__start {
  position: relative;
}
.folder-summary__file-count {
  position: absolute;
  top: -3px;
}
.folder-summary__file-count__amount {
  color: #ffffff;
  font-size: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.folder-summary__file-count svg {
  color: #5166fa;
  height: 30px;
  width: auto;
}
.folder-summary__details {
  padding: 2px 0 0 13px;
}
.folder-summary__details__name {
  color: #393738;
  font-size: 20px;
  font-weight: 500;
}
.folder-summary__details__share {
  -webkit-box-align: center;
          align-items: center;
  color: #b5b4b5;
  display: -webkit-box;
  display: flex;
  font-size: 15px;
  margin-top: 8px;
}
.folder-summary__end {
  margin-left: auto;
}
.folder-summary__end svg {
  fill: #c3c2c3;
}
.folder-summary::after {
  background: #e6e6e6;
  bottom: -2px;
  content: "".........完整代码请登录后点击上方下载按钮下载查看

网友评论0