Skip to content

Instantly share code, notes, and snippets.

@trinary
Created December 23, 2014 20:12
Show Gist options
  • Save trinary/eb119c3aecb433a8cf8a to your computer and use it in GitHub Desktop.
Save trinary/eb119c3aecb433a8cf8a 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,"ajax-caching":true}
var svg = d3.select("svg");
svg.append("g").append("rect").attr({
x: 20,
y: 20,
width: 30,
height: 30
});
svg.on("click", function() {d3.select("g").transition().attr("transform", "scale(3)")});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment