Advertisement
Gomuboy

Squares - CSS

Nov 19th, 2015
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.43 KB | None | 0 0
  1. body
  2.     {
  3.         overflow: hidden;
  4.         font-family: "Segoe UI Light";
  5.         color: #6F6E67;
  6.         background-image: url(wall.jpg);
  7.         background-size: 1920px 1080px;
  8.     }
  9.  
  10. a
  11.     {
  12.         text-decoration: none;
  13.         color: #6F6E67;
  14.         line-height: 20px;
  15.     }
  16.    
  17. [class^='linq'] > a
  18.     {
  19.         position: relative;
  20.         top: 27.5px;
  21.         vertical-align: middle;
  22.     }
  23.  
  24. #bgimg
  25.     {
  26.         z-index: -10;
  27.         position: fixed;
  28.         background-size: cover;
  29.         background-repeat: no-repeat;
  30.     }
  31.  
  32. #container
  33.     {
  34.         width: 100%;
  35.         display: table;
  36.     }
  37.  
  38. span
  39.     {
  40.         width: inherit;
  41.         height: inherit;
  42.         line-height: 145px;
  43.         font-size: 30px;
  44.         color: #6F6E67;
  45.     }
  46.    
  47. #cell
  48.     {
  49.         display: table-cell;
  50.         vertical-align: middle;
  51.         text-align: center;
  52.     }
  53.  
  54. .sqr
  55.     {
  56.         position: relative;
  57.         width: 150px;
  58.         height: 150px;
  59.         /*width: 300px;
  60.         height: 300px;
  61.         top: -75px;*/
  62.         margin: 350px 1% 0% 1%;
  63.         background-color: #3c323d;
  64.         display: inline-block;
  65.         font-size: 16px;
  66.     }
  67.  
  68. /*===============Todos los Linq==============*/
  69.  
  70. [class^='linq']:hover
  71.     {
  72.         background-color: #efecdd !important;
  73.     }
  74.  
  75. [class^='linq']
  76.     {
  77.         position: absolute;
  78.         width: 90px;
  79.         height: 90px;
  80.         background-color: #3c323d;
  81.         visibility: hidden;
  82.         /*border: solid 1px #000000;*/
  83.        
  84.        
  85.         animation-name: ;
  86.         animation-duration: 0.5s;
  87.         animation-play-state: paused;
  88.     }
  89.  
  90. @keyframes enter
  91.         {
  92.             0%
  93.                 {
  94.                     opacity: 0;
  95.                     visibility: hidden;
  96.                     background-color: #3c323d;
  97.                 }
  98.                
  99.             50%
  100.                 {
  101.                     background-color: #efecdd;
  102.                 }
  103.                
  104.             100%
  105.                 {
  106.                     opacity: 1;
  107.                     visibility: inherit;
  108.                     background-color: #3c323d;
  109.                 }
  110.         }  
  111.    
  112. .sqr:hover [class^='linq']
  113.     {
  114.         animation-name: enter;
  115.         animation-play-state: running;
  116.         animation-fill-mode: forwards;
  117.     }
  118.    
  119. /*==================Text==============*/
  120.  
  121.  
  122. span
  123.     {
  124.         transition-property: opacity;
  125.         transition-duration: 0.5s;
  126.         transition-timing-function: ease-out;
  127.     }
  128.    
  129. .sqr:hover span
  130.     {
  131.         opacity: 0;
  132.     }      
  133.    
  134. /*==================Div inicial==============*/
  135.  
  136. .sqr
  137.     {
  138.         transition-property: width, height, margin, transform;
  139.         transition-duration: 1s;
  140.         transition-timing-function: ease-out;
  141.        
  142.     }
  143.    
  144. .sqr:hover
  145.     {
  146.         width: 300px;
  147.         height: 200px;
  148.         margin: 350px 5% 0% 5%;
  149.         transform: translate( 0px, -25px );
  150.     }
  151.    
  152. /*==================Div Arriba a la izquierda==============*/
  153.    
  154. .linq1
  155.     {
  156.         top: 5px;
  157.         left: 5px;
  158.         animation-delay: 1s;
  159.     }
  160.    
  161. /*==================Div Arriba Centro==============*/
  162.  
  163. .linq2
  164.     {
  165.         top: 5px;
  166.         left: 104px;
  167.         animation-delay: 1.1s;
  168.     }
  169.  
  170. /*==================Div Arriba Derecha==============*/
  171.  
  172. .linq3
  173.     {
  174.         top: 5px;
  175.         left: 203px;
  176.         animation-delay: 1.2s;
  177.     }
  178.  
  179. /*==================Div Centro Izquierda==============*/   
  180.    
  181. .linq4
  182.     {
  183.         top: 104px;
  184.         left: 5px;
  185.         animation-delay: 1.3s;
  186.     }
  187.    
  188. /*==================Div Centro Centro==============*/
  189.  
  190.    
  191. .linq5
  192.     {
  193.         top: 104px;
  194.         left: 104px;
  195.         animation-delay: 1.4s;
  196.     }
  197.  
  198. /*==================Div Centro Derecha==============*/
  199.  
  200.    
  201. .linq6
  202.     {
  203.         top: 104px;
  204.         left: 203px;
  205.         animation-delay: 1.5s;
  206.     }
  207.    
  208. /*==================Div Abajo Izquierda==============*/
  209.  
  210.    
  211. .linq7
  212.     {
  213.         top: 203px;
  214.         left: 5px;
  215.         animation-delay: 1.6s;
  216.     }
  217.    
  218. /*==================Div Abajo Centro==============*/
  219.  
  220.    
  221. .linq8
  222.     {
  223.         top: 203px;
  224.         left: 104px;
  225.         animation-delay: 1.7s;
  226.     }
  227.    
  228. /*==================Div Abajo Derecha==============*/
  229.  
  230.    
  231. .linq9
  232.     {
  233.         top: 203px;
  234.         left: 203px;
  235.         animation-delay: 1.8s;
  236.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement