Permalink
Browse files

Update README.md

  • Loading branch information...
myang-git committed Feb 26, 2012
1 parent cbd285f commit 126576b06ab7c052984ac0e08c0f443b4f7f8259
Showing with 5 additions and 2 deletions.
  1. +5 −2 README.md
View
@@ -12,12 +12,15 @@ How To Use
Shaking a div for 500 ms with max drift of 10 pixels:
First create a div in the html:
-
+```html
<div id='shaking_div'>Shaking Shaking</div>
+```
Then in the javascript:
-$('#shaking_div').shake({dur: 500, drift: 10});
+```html
+$('#shaking_div').shake({dur: 500, drift: 10});</code>
+```
Same approach can be applied to other types of element as well.

0 comments on commit 126576b

Please sign in to comment.