div+css实现立体面板进度条动画效果代码
代码语言:html
所属分类:进度条
代码描述:div+css实现立体面板进度条动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } .container { width: 100%; min-height: 100vh; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 80px 100px; overflow: hidden; background: #cfd1e1; } .box { position: relative; width: 240px; height: 250px; display: flex; justify-content: center; align-items: center; } .box::before { content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 100%; background: linear-gradient(#fff, #fff, #e3e3e3); filter: blur(1px); z-index: 1; } .box::after { content: ''; position: absolute; top: 1px; right: -1px; width: 20px; height: 100%; background: #9d9d9d; filter: blur(1px); z-index: 1; } .box .shadow { position: absolute; width: 100%; height: 100%; background: #eee; } .box .shadow::before { content: ''; position: absolute; top: 0; left: calc(100% + 5px); width: 100%; height: 200%; background: linear-gradient(rgba(0,0,0,0.075), transparent); transform: skewX(45deg); } .box .shadow::after { content: ''; position: absolute; bottom: -200%; left: calc(100% + 15px); width: 100%; height: 200%; background: linear-gradient(rgba(0,0,0,0.075), transparent); transform: skewX(45deg); } .box .content { position: relative; width: 100%; height: 100%; background: linear-gradient(#dbdae1, #a3aaba); box-shadow: 5px 5px 5px rgba(0,0,0,0.1), 15px 15px 15px rgba(0,0,0,0.1), 20px 20px 20px rgba(0,0,0,0.1), 50px 50px 50px rgba(0,0,0,0.1), inset 3px 3px 2px #fff; display: flex; flex-d.........完整代码请登录后点击上方下载按钮下载查看
网友评论0