Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created January 6, 2010 16:38
Show Gist options
  • Select an option

  • Save btbytes/270393 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/270393 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Raphael.js sandbox</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="Pradeep Gowda">
<script src="raphael.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.onload = function () {
var paper = Raphael(0,0,0,0);
var r1 = paper.rect(100,100,200,200,10,10);
r1.attr({fill: "#459", stroke: "#f00", opacity: 0.5});
r1.animate({'translation':"100 100",
width: 130, height:140,
'stroke': '#f18',
'stroke-width':2,
'fill':'#8f6',
},
2000,
"elastic");
};
</script>
<style type="text/css" media="screen">
body{
background: url(black.png) #333;
}
</style>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment