Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. /*
  2. To change this license header, choose License Headers in Project Properties.
  3. To change this template file, choose Tools | Templates
  4. and open the template in the editor.
  5. */
  6. /*
  7. Created on : 2018.02.21., 9:10:44
  8. Author : Rendszergazdai
  9. */
  10. body{
  11. margin: 0;
  12. padding: 0;
  13. font-family: 'calibri';
  14. }
  15.  
  16. .pic_grid{
  17. list-style-type: none;
  18. margin: 0 auto;
  19. padding: 20px;
  20. width: 1000px;
  21. }
  22.  
  23. .pic_crop{
  24. display: inline-block;
  25. overflow: hidden;
  26. padding: 0 !important;
  27. margin: 0 !important;
  28. }
  29.  
  30. .pic_grid li{
  31. width: 400px;
  32. position: relative;
  33. display: inline-block;
  34. perspective: 1000px;
  35. perspective-origin: 0 50%;
  36. }
  37.  
  38. .pic_grid li div img{
  39. width: 100%;
  40. height: 100%;
  41. position: relative;
  42. transition: .6s ease;
  43. margin: 0;
  44. padding: 0;
  45. }
  46.  
  47.  
  48. .pic_grid li div div{
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. text-align: center;
  53. background-color: rgb(51, 51, 51);
  54. width: 50%;
  55. height: 94%;
  56. opacity: 1;
  57. transition: .3s linear;
  58. padding-top: 10px;
  59. transform-origin: 0 0;
  60. transform: rotateY(-90deg);
  61. }
  62.  
  63. .pic_grid li div div h4{
  64. color: white;
  65. font-size: 22pt;
  66. margin-bottom: 0px;
  67. font-weight: normal;
  68. margin-top: 0;
  69. }
  70.  
  71. .pic_grid li div div span{
  72. color: rgb(232, 13, 93);
  73. font-size: 13pt;
  74. padding: 0px;
  75. }
  76.  
  77. .pic_grid li div div a{
  78. display: inline-block;
  79. text-decoration: none;
  80. background-color: rgb(232, 13, 93);
  81. padding: 0px 10px;
  82. font-size: 15pt;
  83. color: white;
  84. cursor: pointer;
  85. }
  86.  
  87. .pic_grid li div:hover img{
  88. transform: translateX(25%);
  89. }
  90. .pic_grid li div:hover div{
  91. transform: rotateY(0deg);
  92. }
  93.  
  94.  
  95. <body>
  96. <ul class="pic_grid">
  97. <li>
  98. <div>
  99. <span class="pic_crop">
  100. <img src="img/1.png" alt="Long Shadow Icon">
  101. </span>
  102. <div>
  103. <h4>Camera</h4>
  104. <span>by Jacob Cummings</span>
  105. <a href="#">Take a look</a>
  106. </div>
  107. </div>
  108. </li>
  109. </ul>
  110. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement