Skip to content

Instantly share code, notes, and snippets.

@tuantranf
Created March 9, 2013 16:18
Show Gist options
  • Save tuantranf/5124674 to your computer and use it in GitHub Desktop.
Save tuantranf/5124674 to your computer and use it in GitHub Desktop.
print out effect jquery
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #fdf;
font: 30px sans-serif;
}
#top{
position:absolute;
top:0;
left:0;
z-index:9999;
}
#bottom{
position:absolute;
top:284px;
left:0;
z-index:9995;
}
#paper{
position:absolute;
top:204px;
left:250px;
z-index:9997;
width:300px;
height:50px;
line-height:50px;
padding:15px 0;
background:#fff;
border:1px solid #999;
text-align:center;
font-weight:bold;
font-size:22pt;
-webkit-box-shadow: 0 8px 6px -6px black;
-moz-box-shadow: 0 8px 6px -6px black;
box-shadow: 0 8px 6px -6px black;
}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> </script>
<img id="top" src="http://s1.postimage.org/txsnx2v9r/imgtop.png" />
<div id="paper">Receipt</div>
<img id="bottom" src="http://s1.postimage.org/3o7lea9cf/imgbot.png" />
$('#paper').animate({'top':'284px'}, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment