Guest User

animBlocks

a guest
Apr 30th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.87 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Untitled Document</title>
  6. <style>
  7. #wrapper {
  8.     margin: 2em auto;
  9.     width:800px;
  10.     position:relative;
  11.      padding: 4rem 0;
  12.  
  13.    
  14. }
  15.  
  16. .animBlock {
  17.     margin: 4rem -4rem 0 -2rem;
  18.     padding: 0;
  19.     list-style: none;
  20.     -webkit-column-count: 2;
  21.             column-count: 2;
  22.                
  23. }
  24. .animBlock li {
  25.     position:relative;
  26.     display: block;
  27.    
  28.    
  29.     padding: 0;
  30.     margin: 0 2rem 2rem 0;
  31.     text-decoration: none;
  32.     -webkit-column-break-inside: avoid;
  33.                    break-inside: avoid;
  34.    
  35. }
  36.  
  37. .animBlock_left {
  38.    
  39.     -webkit-animation-name: come_left;
  40.     -webkit-animation-duration: 1s;
  41.     -webkit-animation-iteration-count: 1;
  42.     -webkit-animation-timing-function: ease;
  43.     -webkit-animation-fill-mode: forwards;
  44.  
  45. }
  46.  
  47. .animBlock_right {
  48.    
  49.    
  50.     -webkit-animation-name: come_right;
  51.     -webkit-animation-duration: 1s;
  52.     -webkit-animation-iteration-count: 1;
  53.     -webkit-animation-timing-function: ease;
  54.     -webkit-animation-fill-mode: forwards;
  55.  
  56. }
  57.  
  58.  @-webkit-keyframes come_left {
  59.     0% {-webkit-transform: translateX(-200px); opacity:0;} 
  60.     100% {-webkit-transform: translateX(0);}   
  61.  }
  62.  
  63.  @-webkit-keyframes come_right {
  64.     0% {-webkit-transform: translateX(200px); }
  65.     100% {-webkit-transform: translateX(0);}   
  66.  }
  67. </style>
  68.  
  69. </head>
  70.  
  71. <body>
  72.        
  73.  <div id="wrapper" >
  74.    
  75.        
  76.      
  77.         <ul id="bote" data-position="left" class="animBlock">
  78.         <li class="animBlock_left">
  79.          <svg   x="0px" y="0px"
  80.     viewBox="0 0 3000 3000" enable-background="new 0 0 2400 2400" >
  81.      <g>
  82.     <g>
  83.         <path fill="#BCBEC0" d="M153.1,1489.8c0,14,11.4,25.4,25.4,25.4H509c13.9,0,25.4-11.4,25.4-25.4v-406.9H153.1V1489.8z"/>
  84.         <path fill="#D1D3D4" d="M447.8,1125.6c0-7,5.7-12.7,12.7-12.7h20.8c7,0,12.7,5.7,12.7,12.7v345.2c0,7-5.7,12.7-12.7,12.7h-20.8
  85.             c-7,0-12.7-5.7-12.7-12.7V1125.6z"/>
  86.         <path fill="#D1D3D4" d="M363,1125.6c0-7,5.7-12.7,12.7-12.7h20.8c7,0,12.7,5.7,12.7,12.7v345.2c0,7-5.7,12.7-12.7,12.7h-20.8
  87.             c-7,0-12.7-5.7-12.7-12.7V1125.6z"/>
  88.         <path fill="#D1D3D4" d="M278.2,1125.6c0-7,5.7-12.7,12.7-12.7h20.8c7,0,12.7,5.7,12.7,12.7v345.2c0,7-5.7,12.7-12.7,12.7h-20.8
  89.             c-7,0-12.7-5.7-12.7-12.7V1125.6z"/>
  90.         <path fill="#D1D3D4" d="M193.4,1125.6c0-7,5.7-12.7,12.7-12.7h20.8c7,0,12.7,5.7,12.7,12.7v345.2c0,7-5.7,12.7-12.7,12.7h-20.8
  91.             c-7,0-12.7-5.7-12.7-12.7V1125.6z"/>
  92.     </g>
  93.     <path fill="#A7A9AC" d="M539.4,1019.2h-121v-13.1c0-7-5.7-12.7-12.7-12.7h-124c-7,0-12.7,5.7-12.7,12.7v13.1H148
  94.         c-7,0-12.7,5.7-12.7,12.7v38.3c0,7,5.7,12.7,12.7,12.7h391.4c7,0,12.7-5.7,12.7-12.7v-38.3C552.1,1024.9,546.4,1019.2,539.4,1019.2
  95.         z"/>
  96. </g>
  97. </svg>
  98.         </li>
  99.                            <li id="boteTxt" data-position="right" class="animBlock_right">
  100.           <h3>The New Product</h3>
  101.           <p>some deescription about the product</p>
  102.        </li>
  103.    </ul>
  104.         </div>
  105.      
  106.    
  107.  
  108. </body>
  109. </html>
Advertisement
Add Comment
Please, Sign In to add comment