Skip to content

Instantly share code, notes, and snippets.

@gelicia
Created January 4, 2014 01:48
Show Gist options
  • Save gelicia/8250421 to your computer and use it in GitHub Desktop.
Save gelicia/8250421 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}},"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 width = 50;
var height = 50
svg
.append("rect")
.attr("x",0)
.attr("y",0)
.attr("width",width)
.attr("height",height)
.attr("fill","gray")
.attr("opacity",0.5)
.on("click",function(d){
this.remove()
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment