Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created February 16, 2013 02:53
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 roundrobin/4965295 to your computer and use it in GitHub Desktop.
Save roundrobin/4965295 to your computer and use it in GitHub Desktop.
hmtl - button gradient
{"description":"hmtl - button gradient","endpoint":"","display":"div","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"test.css":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"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,"thumbnail":"http://i.imgur.com/lSRSXIZ.png"}
var b = g;
console.log(g)
b.append('div')
.text('Hello World')
.attr('class','test')
.style('display','inline-block')
.style('color','#4AB900')
.style('padding','14px')
.test{
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.5, #05298B),
color-stop(1, #741270)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment