div+css布局投票箱投票动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css布局投票箱投票动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; } .container { position: relative; margin: 15vh auto; background-color: #5887cb; width: 800px; height: 600px; } .base { position: absolute; width: 300px; height: 250px; background-color: #9fd0e1; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 10; } .top-front { width: 360px; height: 50px; background-color: #9fd0e1; position: absolute; top: 0; left: 50%; transform: translateX(-50%); } .top-top2 { position: absolute; border-bottom: 35px solid #c5f7f6; border-left: 13px solid transparent; border-right: 13px solid transparent; height: 0; width: 334px; bottom: 250px; left: 50%; transform: translateX(-50%); z-index: 10; } .top-top3 { position: absolute; border-bottom: 35px solid #c5f7f6; border-left: 13px solid transparent; border-right: 13px solid transparent; height: 0; width: 308px; bottom: 285px; left: 50%; transform: translateX(-50%); } .shadow { position: absolute; top: 50px; height: 10px; width: 300px; background-color: rgba(0, 0, 0, 0.45); } .slot2 { height: 5px; width: 150px; position: absolute; background-color: rgba(0, 0, 0, 0.4); left: 50%; top: 30px; transform: translateX(-50%); border-radius: 6px 6px 0 0; z-index: 6; } .slot3 { height: 5px; width: 150px; position: absolute; background-color: rgba(0, 0, 0, 0.4); left: 50%; top: 0px; transform: translateX(-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0