css实现炫酷柱状图表动画效果代码
代码语言:html
所属分类:图表
代码描述:css实现炫酷柱状图表动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <style> @-webkit-keyframes animate-width { 0% { width: 0; } 100% { visibility: visible; } } @-moz-keyframes animate-width { 0% { width: 0; } 100% { visibility: visible; } } @keyframes animate-width { 0% { width: 0; } 100% { visibility: visible; } } @-webkit-keyframes animate-height { 0% { height: 0; } 100% { visibility: visible; } } @-moz-keyframes animate-height { 0% { height: 0; } 100% { visibility: visible; } } @keyframes animate-height { 0% { height: 0; } 100% { visibility: visible; } } body { background-color: #3b4150; font-family: arial, sans-serif; color: #cdcdcd; } #bar-chart { height: 380px; width: 70%; position: relative; margin: 50px auto 0; } #bar-chart * { box-sizing: border-box; } #bar-chart .graph { height: 283px; position: relative; } #bar-chart .bars { height: 253px; padding: 0 2%; position: absolute; width: 100%; z-index: 10; } #bar-chart .bar-group { display: block; float: left; height: 100%; position: relative; width: 12%; margin-right: 10%; } #bar-chart .bar-group:last-child { margin-right: 0; } #bar-chart .bar-group .bar { visib.........完整代码请登录后点击上方下载按钮下载查看
网友评论0