Skip to content

Instantly share code, notes, and snippets.

/_.md

Created November 14, 2012 18:33
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 anonymous/4073890 to your computer and use it in GitHub Desktop.
Save anonymous/4073890 to your computer and use it in GitHub Desktop.
Another Inlet
{"description":"Another Inlet","endpoint":"","display":"svg","public":true,"require":[],"tab":"edit","display_percent":0.6452181993506053,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01}
console.log(d3.select("#bild"))
d3.select("#bild")
.attr("x",-200)
.transition()
.duration(1200)
.attr("x",-100)
.attr("y",100);
d3.select("#animated-rect")
.attr("width",0)
.transition()
.duration(1000)
.attr("width",10)
.transition()
.duration(428)
.attr("x",200)
.attr("width",500)
.attr("fill","#0083DB")
d3.select("#animated-rect2")
.transition()
.duration(1000)
.attr("x",200)
.attr("y",800)
.attr("height",100)
.attr("fill","#020002")
d3.select("defs").append("clipPath")
.attr("id","gg")
.append("text")
.attr("font-size",100)
.attr("x",100)
.attr("y",100)
.text("HELLO WORLD")
d3.select("svg")
.append("path")
.attr("d","M0,0 L50,0 L100,100 L50,100")
.attr("fill","#9AC49A")
.attr("transform","translate(0,100)")
.attr("clip-path","url(#gg)")
.transition()
.duration(1500)
.attr("d","M0,0 L800,0 L850,100 L50,100");
//<clipPath id="clip5">
// <text font-size=100 y=878 x=250 id="schablone">WORLD</text>
//</clipPath>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment