Skip to content

Instantly share code, notes, and snippets.

@thams017
Last active March 4, 2016 05:34
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 thams017/57af35a29d14bcd85dcb to your computer and use it in GitHub Desktop.
Save thams017/57af35a29d14bcd85dcb to your computer and use it in GitHub Desktop.
To randomize the R
function randReveal() {
var rn1 = Math.random() * 300;
var left = parseInt(rn1);
var rn2 = Math.random() * 200;
var top = parseInt(rn2);
$(".reveal").css("left", left);
$(".reveal").css("top", top);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment