Advertisement
Guest User

Untitled

a guest
Jul 29th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.13 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.     <title>Button</title>
  7.    
  8.     <style>
  9.         @-webkit-keyframes swing {
  10.             20%, 40%, 60%, 80%, 100% { -webkit-transform-origin: top center; }
  11.             20% { -webkit-transform: rotate(15deg); }  
  12.             40% { -webkit-transform: rotate(-15deg); }
  13.             60% { -webkit-transform: rotate(5deg); }   
  14.             80% { -webkit-transform: rotate(-5deg); }  
  15.             100% { -webkit-transform: rotate(0deg); }
  16.         }
  17.  
  18.         @-moz-keyframes swing {
  19.             20% { -moz-transform: rotate(15deg); } 
  20.             40% { -moz-transform: rotate(-10deg); }
  21.             60% { -moz-transform: rotate(5deg); }  
  22.             80% { -moz-transform: rotate(-5deg); } 
  23.             100% { -moz-transform: rotate(0deg); }
  24.         }
  25.  
  26.         @-o-keyframes swing {
  27.             20% { -o-transform: rotate(15deg); }   
  28.             40% { -o-transform: rotate(-10deg); }
  29.             60% { -o-transform: rotate(5deg); }
  30.             80% { -o-transform: rotate(-5deg); }   
  31.             100% { -o-transform: rotate(0deg); }
  32.         }
  33.  
  34.         @keyframes swing {
  35.             20% { transform: rotate(15deg); }  
  36.             40% { transform: rotate(-10deg); }
  37.             60% { transform: rotate(5deg); }   
  38.             80% { transform: rotate(-5deg); }  
  39.             100% { transform: rotate(0deg); }
  40.         }
  41.  
  42.         .animated {
  43.             -webkit-transform-origin: top center;
  44.             -moz-transform-origin: top center;
  45.             -o-transform-origin: top center;
  46.             transform-origin: top center;
  47.             -webkit-animation-name: swing;
  48.             -moz-animation-name: swing;
  49.             -o-animation-name: swing;
  50.             animation-name: swing;
  51.             -webkit-animation-iteration-count: infinite;
  52.             -webkit-animation-duration: 1s;
  53.             -webkit-animation-delay: .2s;
  54.             -webkit-animation-timing-function: ease;
  55.             -webkit-animation-fill-mode: both;
  56.             -moz-animation-iteration-count: infinite;
  57.             -moz-animation-duration: 1s;
  58.             -moz-animation-delay: .2s;
  59.             -moz-animation-timing-function: ease;
  60.             -moz-animation-fill-mode: both;
  61.             -ms-animation-duration: 1s;
  62.             -ms-animation-delay: .2s;
  63.             -ms-animation-timing-function: ease;
  64.             -ms-animation-fill-mode: both;
  65.             -o-animation-duration: 1s;
  66.             -o-animation-delay: .2s;
  67.             -o-animation-timing-function: ease;
  68.             -o-animation-fill-mode: both;
  69.             animation-iteration-count: infinite;
  70.             animation-duration: 1s;
  71.             animation-delay: .2s;
  72.             animation-timing-function: ease;
  73.             animation-fill-mode: both;
  74.         }
  75.         body {
  76.             font-family: Arial;
  77.             color: grey;
  78.         }
  79.  
  80.     </style>
  81. </head>
  82.  
  83. <body>
  84.  
  85.  
  86.    <h2>Job Files:</h2>
  87.  
  88.     <div style="width: 400px; position: relative; float: left; background-color: red;">
  89.    
  90.         <div style="width: 400px; float: left; z-index: 10;">
  91.             <img src="product-shoe.jpg" />
  92.         </div>
  93.        
  94.         <div class="animated" style="width: 200px; text-align: right; float: left; position: absolute; z-index: 20; margin: 20px 0px 0px 180px;">
  95.             <a href="#"><img src="buy_button.png" /></a>
  96.         </div>
  97.        
  98.     </div>  
  99.    
  100.     <p style="clear: both;">&nbsp;</p>
  101.            
  102.     <h2>Instructions:</h2>
  103.    
  104.     <p>(...)</p>
  105.  
  106.  
  107. </body>
  108.  
  109. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement