svg+TweenMax实现简洁多文件带进度上传ui效果代码
代码语言:html
所属分类:上传
代码描述:svg+TweenMax实现简洁多文件带进度上传ui效果代码
代码标签: svg TweenMax 简洁 多文件 进度 上传 ui
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
background-color: #f3f6fa;
font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica,
Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-synthesis: none;
-moz-font-feature-settings: "kern";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.page {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
flex-direction: column;
}
.upload-container {
width: 360px;
height: 480px;
border-radius: 16px;
background-color: white;
box-shadow: -70px 90px 102px #e2e7ed;
}
.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: 36px 24px 20px;
border-bottom: 1px solid #f3f6fa;
}
.nav-h {
font-style: normal;
font-weight: 700;
font-size: 32px;
line-height: 44px;
color: #2e3640;
}
#refresh-all {
width: 24px;
height: 24px;
cursor: pointer;
stroke: #e1e6ed;
opacity: 0;
pointer-events: none;
transition: all 0.6s cubic-bezier(0.19, 1, 0.1, 1.2);
}
#refresh-all:hover {
stroke: #a5afbc;
}
.refresh1.refresh2.refresh3 {
opacity: 1 !important;
pointer-events: auto !important;
transform: rotate(-360deg);
transition: all 0.6s cubic-bezier(0.19, 1, 0.1, 1.2);
}
.upload-items {
height: 72px;
padding: 0 24px 0 24px;
display: flex;
align-items: center;
overflow: hidden;
position: relative;
opacity: 0;
margin-top: 4px;
transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.upload-inf-container {
display: flex;
flex-direction: column;
width: calc(100% - 66px);
margin-left: 20px;
}
.upload-inf-icon {
width: 46px;
height: 46px;
}
.upload-operation-container {
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 0 4px 0;
}
.upload-inf-h {
font-weight: 500;
font-size: 16px;
color: #2e3640;
letter-spacing: 0.03em;
}
.upload-operation {
display: flex;
}
.upload {
position: relative;
min-height: 300px;
}
.upload-operation-icon {
width: 24px;
height: 24px;
margin-left: 19px;
cursor: pointer;
stroke: #e1e6ed;
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
position: relative;
transition: stroke 0.3s;
}
.upload-operation-icon:hover {
stroke: #b6c0cd !important;
}
.upload-operation-icon-mouse-transition {
transition: all 1s cubic-bezier(0.19, 1, 0.1, 1) !important;
}
.upload-operation-icon-mouse {
transform: scale(0.8) !important;
}
.paused-path {
transition: stroke-dasharray,
stroke-dashoffset 0.2s cubic-bezier(0.19, 0.6, 0.1, 1);
}
.paused-line {
stroke-dasharray: 17;
stroke-dashoffset: 11;
transition: stroke-dasharray,
stroke-dashoffset 0.8s cubic-bezier(0.19, 1, 0.1, 1.2);
}
.upload-progress-container {
display: flex;
align-items: center;
justify-content: space-between;
}
.upload-progress-text-container {
color: #3268f1;
font-size: 14px;
font-weight: 700;
}
.upload-progress {
width: calc(100% - 50px);
height: 3px;
background-color: #eff3f9;
border-radius: 4px;
}
.progress {
width: 0px;
height: 3px;
background-color: #3268f1;
border-radius: 4px;
}
.upload-complete-text {
color: #52d990;
transition: color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.upload-complete-progress {
background-color: #52d990;
transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#upload-icon-com {
opacity: 0;
}
#dribbble-button {
display: flex;
justify-content: center;
align-items: center;
color: white;
background-color: #d85888;
border: none;
font-size: 18px;
padding: 12px 24px;
font-weight: 600;
margin-top: 40px;
border-radius: 6px;
border-bottom: 4px solid #edc3d2;
z-index: 1;
cursor: pointer;
}
#dribbble-icon {
margin-right: 6px;
}
.blank {
width: 160px;
}
.blank-container {
position: absolute;
top: 10%;
margin: 0 auto;
width: 260px;
display: flex;
pointer-events: none;
opacity: 0;
flex-.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0