D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
mbostock
Full window
Github gist
Table of Progress
<!DOCTYPE html> <meta charset="utf-8"> <style> body { margin: 40px; font: 14px Helvetica Neue; } div { position: relative; overflow: hidden; } span { display: inline-block; position: absolute; height: 16px; } .progress { border: solid 1px #ccc; background: #eee; } .progress .value { background: #3182bd; } </style> <body> <script src="//d3js.org/d3.v3.min.js"></script> <script> var id = 0xffff; function create() { var duration = 5000 + Math.random() * 25000; var div = d3.select("body").insert("div", "div"); div.append("span") .style("width", "74px") .style("text-align", "right") .text(++id); div.append("span") .attr("class", "progress") .style("width", "240px") .style("left", "80px") .append("span") .attr("class", "value") .transition() .duration(duration) .ease("linear") .style("width", "100%"); div.transition() .style("height", "20px") .transition() .delay(duration) .style("height", "0px") .remove(); setTimeout(create, Math.random() * 10000); } create(); create(); create(); create(); create(); </script>
https://d3js.org/d3.v3.min.js