Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Last active September 9, 2015 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikhazzard/7e830bd65ad749237e4d to your computer and use it in GitHub Desktop.
Save erikhazzard/7e830bd65ad749237e4d to your computer and use it in GitHub Desktop.
data yoga 1

hello markdown

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
</head>
<body>
<svg width=960 height=500 >
</svg>
<script>
var svg = d3.select('svg');
var rect = svg.append('rect')
.attr({
x: 0,
y: 0,
width: 960,
height: 300
})
.style({
fill: "#336699"
});
function breathe(){
rect.transition().duration(1200).attr({
transform: 'scale(' + Math.random() + ')'
}).each('end', breathe);
}
breathe();
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment