jquery+css实现带进度条上传按钮交互动画效果代码
代码语言:html
所属分类:上传
代码描述:jquery+css实现带进度条上传按钮交互动画效果代码
代码标签: jquery css 进度条 上传 按钮 交互 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> @import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700"); html,body { width:100%; height:100%; padding:0; margin:0; } body { display:flex; align-items:center; justify-content:center; background-color:#424242; } .zz-button { color:white; font-family:Raleway,sans-serif; font-size:32px; font-weight:bold; background-color:#2f8aff; width:250px; height:100px; border:none; cursor:pointer; outline:none; border-radius:20% / 50%; transition:color 0.7s ease-in-out,font-size 0.7s ease-in-out,background-color 0.7s ease-in-out,width 0.7s ease-in-out,height 0.7s ease-in-out,border-radius 0.7s ease-in-out; } .zz-button:after { content:'0%'; font-size:0; display:block; transition:font-size 0.7s ease-in-out; } .zz-button.active { font-size:18px; background-color:#085dc9; width:175px; height:175px; border-radius:50%; } .zz-button.active:after { font-size:48px; } .zz-button[zz-button-progress='0'] { background-image:linear-gradient(to top,#2f8aff 0%,#085dc9 0%); } .zz-button[zz-button-progress='0']:after { content:"0%"; } .zz-button[zz-button-progress='1'] { background-image:linear-gradient(to top,#2f8aff 1%,#085dc9 1%); } .zz-button[zz-button-progress='1']:after { content:"1%"; } .zz-button[zz-button-progress='2'] { background-image:linear-gradient(to top,#2f8aff 2%,#085dc9 2%); } .zz-button[zz-button-progress='2']:after { content:"2%"; } .zz-button[zz-button-progress='3'] { background-image:linear-gradient(to top,#2f8aff 3%,#085dc9 3%); } .zz-button[zz-button-progress='3']:after { content:"3%"; } .zz-button[zz-button-progress='4'] { background-image:linear-gradient(to top,#2f8aff 4%,#085dc9 4%); } .zz-button[zz-button-progress='4']:after { content:"4%"; } .zz-button[zz-button-progress='5'] { background-image:linear-gradient(to top,#2f8aff 5%,#085dc9 5%); } .zz-button[zz-button-progress='5']:after { content:"5%"; } .zz-button[zz-button-progress='6'] { background-image:linear-gradient(to top,#2f8aff 6%,#085dc9 6%); } .zz-button[zz-button-progress='6']:after { content:"6%"; } .zz-button[zz-button-progress='7'] { background-image:linear-gradient(to top,#2f8aff 7%,#085dc9 7%); } .zz-button[zz-button-progress='7']:after { content:"7%"; } .zz-button[zz-button-progress='8'] { background-image:linear-gradient(to top,#2f8aff 8%,#085dc9 8%); } .zz-button[zz-button-progress='8']:after { content:"8%"; } .zz-button[zz-button-progress='9'] { background-image:linear-gradient(to top,#2f8aff 9%,#085dc9 9%); } .zz-button[zz-button-progress='9']:after { content:"9%"; } .zz-button[zz-button-progress='10'] { background-image:linear-gradient(to top,#2f8aff 10%,#085dc9 10%); } .zz-button[zz-button-progress='10']:after { content:"10%"; } .zz-button[zz-button-progress='11'] { background-image:linear-gradient(to top,#2f8aff 11%,#085dc9 11%); } .zz-button[zz-button-progress='11']:after { content:"11%"; } .zz-button[zz-button-progress='12'] { background-image:linear-gradient(to top,#2f8aff 12%,#085dc9 12%); } .zz-button[zz-button-progress='12']:after { content:"12%"; } .zz-button[zz-button-progress='13'] { background-image:linear-gradient(to top,#2f8aff 13%,#085dc9 13%); } .zz-button[zz-button-progress='13']:after { content:"13%"; } .zz-button[zz-button-progress='14'] { background-image:linear-gradient(to top,#2f8aff 14%,#085dc9 14%); } .zz-button[zz-button-progress='14']:after { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0