Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmueller committed Apr 24, 2013
1 parent 0158553 commit f07b7e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Readme.md
Expand Up @@ -7,6 +7,20 @@

$ component install matthewmueller/svg-element

## Example

```js
var element = require('svg-element');
var box = element('rect')
.size(100)
.attr('fill', 'black')
.rotate(20)
.move(50);

var svg = document.getElementsByTagName('svg')[0];
svg.appendChild(box.el);
```

## API

### Element(type)
Expand Down

0 comments on commit f07b7e9

Please sign in to comment.