Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).load(function(){
- $("blockquote,img").each(function(){
- var off = $(this).offset();var rand=Math.floor(Math.random()*15)-7;
- $(this).parent().append("<div style='background-color:black;position:absolute;"+
- "-moz-transform:rotate("+rand+"deg);-webkit-transform:rotate("+rand+"deg);"+
- "width:"+($(this).width())+"px;"+
- "height:"+($(this).height())+"px;"+
- "top:"+(off.top)+"px;"+
- "left:"+(off.left-50)+"px;' > </div>");
- });
- });
Add Comment
Please, Sign In to add comment