Skip to content

Instantly share code, notes, and snippets.

@davidshinn
Created January 3, 2014 03:16
Show Gist options
  • Save davidshinn/8232013 to your computer and use it in GitHub Desktop.
Save davidshinn/8232013 to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01}
var svg = d3.select("svg");
var rect = svg.append("rect");
rect.attr({"x": 69, "y": 20, "height":308, "width":19})
rect.transition()
.delay(2000)
.duration(2000)
.attr("transform", "translate(0,154) rotate(-90)")
// rect.transition().delay(2000).duration(3000).attr("height", 19).attr("width", 308)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment