Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.92 KB | None | 0 0
  1. *,
  2. *::before,
  3. *::after {
  4.     box-sizing: border-box;
  5. }
  6.  
  7. img {
  8.     display: block;
  9. }
  10.  
  11. .gallery {
  12.     position: relative;
  13.     z-index: 2;
  14.     padding: 10px;
  15.     display: flex;
  16.     flex-flow: row wrap;
  17.     justify-content: space-between;
  18.     transition: all .5s ease-in-out;
  19. }
  20.  
  21. .gallery.pop {
  22.     filter: blur(10px);
  23. }
  24.  
  25. .gallery figure {
  26.     flex-basis: 33.333%;
  27.     padding: 10px;
  28.     overflow: hidden;
  29.     border-radius: 10px;
  30.     cursor: pointer;
  31. }
  32.  
  33. .gallery figure img {
  34.     width: 100%;
  35.     border-radius: 10px;
  36.     transition: all .3s ease-in-out;
  37. }
  38.  
  39. .gallery figure figcaption {
  40.     display: none;
  41. }
  42.  
  43. .popup {
  44.     position: fixed;
  45.     z-index: 2;
  46.     top: 0;
  47.     left: 0;
  48.     width: 100%;
  49.     height: 100%;
  50.     background: rgba(255, 255, 255, 0.75);
  51.     opacity: 0;
  52.     transition: opacity .5s ease-in-out .2s;
  53. }
  54.  
  55. .popup.pop {
  56.     opacity: 1;
  57.     transition: opacity .2s ease-in-out 0s;
  58. }
  59.  
  60. .popup.pop figure {
  61.     margin-top: 0;
  62.     opacity: 1;
  63. }
  64.  
  65. .popup figure {
  66.     position: absolute;
  67.     top: 50%;
  68.     left: 50%;
  69.     transform: translate(-50%, -50%);
  70.     transform-origin: 0 0;
  71.     margin-top: 30px;
  72.     opacity: 0;
  73.     animation: poppy 500ms linear both;
  74. }
  75.  
  76. .popup figure img {
  77.     position: relative;
  78.     z-index: 2;
  79.     border-radius: 15px;
  80.     box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 6px 30px rgba(0, 0, 0, 0.4);
  81. }
  82.  
  83. .popup figure figcaption {
  84.     position: absolute;
  85.     bottom: 50px;
  86.     background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  87.     z-index: 2;
  88.     width: 100%;
  89.     border-radius: 0 0 15px 15px;
  90.     padding: 100px 20px 20px 20px;
  91.     color: #fff;
  92.     font-family: 'Open Sans', sans-serif;
  93.     font-size: 32px;
  94. }
  95.  
  96. .popup figure figcaption small {
  97.     font-size: 11px;
  98.     display: block;
  99.     text-transform: uppercase;
  100.     margin-top: 12px;
  101.     text-indent: 3px;
  102.     opacity: .7;
  103.     letter-spacing: 1px;
  104. }
  105.  
  106. .popup figure .shadow {
  107.     position: relative;
  108.     z-index: 1;
  109.     top: -15px;
  110.     margin: 0 auto;
  111.     background-position: center bottom;
  112.     background-repeat: no-repeat;
  113.     width: 98%;
  114.     height: 50px;
  115.     opacity: .6;
  116.     filter: blur(15px) contrast(2);
  117. }
  118.  
  119. .popup .close {
  120.     position: absolute;
  121.     z-index: 3;
  122.     top: 10px;
  123.     right: 10px;
  124.     width: 25px;
  125.     height: 25px;
  126.     cursor: pointer;
  127.     background: url(#close);
  128.     border-radius: 25px;
  129.     background: rgba(0, 0, 0, 0.1);
  130.     box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  131. }
  132.  
  133. .popup .close svg {
  134.     width: 100%;
  135.     height: 100%;
  136. }
  137.  
  138. @keyframes poppy {
  139.     0% {
  140.         transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  141.     }
  142.  
  143.     3.4% {
  144.         transform: matrix3d(0.316, 0, 0, 0, 0, 0.407, 0, 0, 0, 0, 1, 0, -94.672, -91.573, 0, 1);
  145.     }
  146.  
  147.     4.3% {
  148.         transform: matrix3d(0.408, 0, 0, 0, 0, 0.54, 0, 0, 0, 0, 1, 0, -122.527, -121.509, 0, 1);
  149.     }
  150.  
  151.     4.7% {
  152.         transform: matrix3d(0.45, 0, 0, 0, 0, 0.599, 0, 0, 0, 0, 1, 0, -134.908, -134.843, 0, 1);
  153.     }
  154.  
  155.     6.81% {
  156.         transform: matrix3d(0.659, 0, 0, 0, 0, 0.893, 0, 0, 0, 0, 1, 0, -197.77, -200.879, 0, 1);
  157.     }
  158.  
  159.     8.61% {
  160.         transform: matrix3d(0.82, 0, 0, 0, 0, 1.097, 0, 0, 0, 0, 1, 0, -245.972, -246.757, 0, 1);
  161.     }
  162.  
  163.     9.41% {
  164.         transform: matrix3d(0.883, 0, 0, 0, 0, 1.168, 0, 0, 0, 0, 1, 0, -265.038, -262.804, 0, 1);
  165.     }
  166.  
  167.     10.21% {
  168.         transform: matrix3d(0.942, 0, 0, 0, 0, 1.226, 0, 0, 0, 0, 1, 0, -282.462, -275.93, 0, 1);
  169.     }
  170.  
  171.     12.91% {
  172.         transform: matrix3d(1.094, 0, 0, 0, 0, 1.328, 0, 0, 0, 0, 1, 0, -328.332, -298.813, 0, 1);
  173.     }
  174.  
  175.     13.61% {
  176.         transform: matrix3d(1.123, 0, 0, 0, 0, 1.332, 0, 0, 0, 0, 1, 0, -336.934, -299.783, 0, 1);
  177.     }
  178.  
  179.     14.11% {
  180.         transform: matrix3d(1.141, 0, 0, 0, 0, 1.331, 0, 0, 0, 0, 1, 0, -342.273, -299.395, 0, 1);
  181.     }
  182.  
  183.     17.22% {
  184.         transform: matrix3d(1.205, 0, 0, 0, 0, 1.252, 0, 0, 0, 0, 1, 0, -361.606, -281.592, 0, 1);
  185.     }
  186.  
  187.     17.52% {
  188.         transform: matrix3d(1.208, 0, 0, 0, 0, 1.239, 0, 0, 0, 0, 1, 0, -362.348, -278.88, 0, 1);
  189.     }
  190.  
  191.     18.72% {
  192.         transform: matrix3d(1.212, 0, 0, 0, 0, 1.187, 0, 0, 0, 0, 1, 0, -363.633, -267.15, 0, 1);
  193.     }
  194.  
  195.     21.32% {
  196.         transform: matrix3d(1.196, 0, 0, 0, 0, 1.069, 0, 0, 0, 0, 1, 0, -358.864, -240.617, 0, 1);
  197.     }
  198.  
  199.     24.32% {
  200.         transform: matrix3d(1.151, 0, 0, 0, 0, 0.96, 0, 0, 0, 0, 1, 0, -345.164, -216.073, 0, 1);
  201.     }
  202.  
  203.     25.23% {
  204.         transform: matrix3d(1.134, 0, 0, 0, 0, 0.938, 0, 0, 0, 0, 1, 0, -340.193, -210.948, 0, 1);
  205.     }
  206.  
  207.     28.33% {
  208.         transform: matrix3d(1.075, 0, 0, 0, 0, 0.898, 0, 0, 0, 0, 1, 0, -322.647, -202.048, 0, 1);
  209.     }
  210.  
  211.     29.03% {
  212.         transform: matrix3d(1.063, 0, 0, 0, 0, 0.897, 0, 0, 0, 0, 1, 0, -318.884, -201.771, 0, 1);
  213.     }
  214.  
  215.     29.93% {
  216.         transform: matrix3d(1.048, 0, 0, 0, 0, 0.899, 0, 0, 0, 0, 1, 0, -314.277, -202.202, 0, 1);
  217.     }
  218.  
  219.     35.54% {
  220.         transform: matrix3d(0.979, 0, 0, 0, 0, 0.962, 0, 0, 0, 0, 1, 0, -293.828, -216.499, 0, 1);
  221.     }
  222.  
  223.     36.74% {
  224.         transform: matrix3d(0.972, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, -291.489, -220.242, 0, 1);
  225.     }
  226.  
  227.     39.44% {
  228.         transform: matrix3d(0.962, 0, 0, 0, 0, 1.01, 0, 0, 0, 0, 1, 0, -288.62, -227.228, 0, 1);
  229.     }
  230.  
  231.     41.04% {
  232.         transform: matrix3d(0.961, 0, 0, 0, 0, 1.022, 0, 0, 0, 0, 1, 0, -288.247, -229.999, 0, 1);
  233.     }
  234.  
  235.     44.44% {
  236.         transform: matrix3d(0.966, 0, 0, 0, 0, 1.032, 0, 0, 0, 0, 1, 0, -289.763, -232.215, 0, 1);
  237.     }
  238.  
  239.     52.15% {
  240.         transform: matrix3d(0.991, 0, 0, 0, 0, 1.006, 0, 0, 0, 0, 1, 0, -297.363, -226.449, 0, 1);
  241.     }
  242.  
  243.     59.86% {
  244.         transform: matrix3d(1.006, 0, 0, 0, 0, 0.99, 0, 0, 0, 0, 1, 0, -301.813, -222.759, 0, 1);
  245.     }
  246.  
  247.     61.66% {
  248.         transform: matrix3d(1.007, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, -302.102, -222.926, 0, 1);
  249.     }
  250.  
  251.     63.26% {
  252.         transform: matrix3d(1.007, 0, 0, 0, 0, 0.992, 0, 0, 0, 0, 1, 0, -302.171, -223.276, 0, 1);
  253.     }
  254.  
  255.     75.28% {
  256.         transform: matrix3d(1.001, 0, 0, 0, 0, 1.003, 0, 0, 0, 0, 1, 0, -300.341, -225.696, 0, 1);
  257.     }
  258.  
  259.     83.98% {
  260.         transform: matrix3d(0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -299.61, -225.049, 0, 1);
  261.     }
  262.  
  263.     85.49% {
  264.         transform: matrix3d(0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -299.599, -224.94, 0, 1);
  265.     }
  266.  
  267.     90.69% {
  268.         transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, -299.705, -224.784, 0, 1);
  269.     }
  270.  
  271.     100% {
  272.         transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -300, -225, 0, 1);
  273.     }
  274. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement