Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. body {
  2. font-family: 'Lato', sans-serif;
  3. font-weight: 300;
  4. background-color: #9cb8b3;
  5. }
  6. a {
  7. text-decoration: none;
  8. }
  9.  
  10. .row {
  11. width: 1024px;
  12. margin: 300px auto;
  13. }
  14.  
  15. /* Mighty Hover */
  16.  
  17.  
  18. ul.items {
  19. width: 100%;
  20. display: table;
  21. }
  22. ul.items li {
  23. float: left;
  24. width: 31.33%;
  25. text-align: center;
  26. margin-right: 3%;
  27. display: block;
  28. }
  29. ul.items li figure {
  30. position: relative;
  31. overflow: hidden;
  32. background: #EFEDCE;
  33. text-align: center;
  34. /* border-bottom: 1px solid #87d3b7; */
  35. width: 100%;
  36. }
  37. ul.items li figure img {
  38. width: 100%;
  39. -webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s;
  40. transition: transform 0.3s ease-out, opacity 0.3s;
  41. -moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s;
  42. }
  43. ul.items li a {
  44. display: block;
  45. width: 100%;
  46. height: 100%;
  47. }
  48. ul.items li a:hover .description {
  49. -webkit-transform: translate(0, 0);
  50. -moz-transform: translate(0, 0);
  51. transform: translate(0, 0);
  52. }
  53. ul.items li a:hover .title {
  54. -webkit-transform: translate(0, -73px);
  55. -moz-transform: translate(0, -73px);
  56. transform: translate(0, -73px);
  57. }
  58. ul.items li a:hover img {
  59. opacity: 0.3;
  60. -webkit-transform: translate(0, -30px);
  61. -moz-transform: translate(0, -30px);
  62. transform: translate(0, -30px);
  63. }
  64. ul.items li:last-of-type {
  65. margin-right: 0px;
  66. }
  67.  
  68. h1.title {
  69. display: table-cell;
  70. width: 100%;
  71. font-family: 'Lato', sans-serif;
  72. font-weight: 700;
  73. font-size: 20px;
  74. color: rgba(0,0,0,.5);
  75. line-height: 2;
  76. text-align: center;
  77. text-transform: uppercase;
  78. position: absolute;
  79. bottom: -10;
  80. left: 0;
  81. right: 0;
  82. z-index: 3;
  83. background: #EFEDCE;
  84. padding: 0 0px;
  85. display: block;
  86. -webkit-transition: -webkit-transform 0.4s, color 0.3s;
  87. -moz-transition: -moz-transform 0.4s, color 0.3s;
  88. transition: transform 0.4s, color 0.3s;
  89. border-top: 4px solid rgba(0,0,0,.5);
  90. }
  91. h1.title:after {
  92. content: '';
  93. position: absolute;
  94. top: 100%;
  95. left: 0;
  96. right: 0;
  97. height: 100px;
  98. background: #505048;
  99. width: 100%;
  100. }
  101.  
  102. .description {
  103. display: table-cell;
  104. position: absolute;
  105. bottom: 0;
  106. left: 0;
  107. right: 0;
  108. width: 100%;
  109. -webkit-transform: translate(0, 100%);
  110. -moz-transform: translate(0, 100%);
  111. transform: translate(0, 100%);
  112. z-index: 4;
  113. -webkit-transition: -webkit-transform 0.25s;
  114. -moz-transition: -moz-transform 0.25s;
  115. transition: transform 0.25s;
  116. }
  117. .description p {
  118. display: block;
  119. height: 65px;
  120. overflow: hidden;
  121. color: #a8a8a8;
  122. margin: 0;
  123. font-family: 'Lato', sans-serif;
  124. font-weight: 300;
  125. font-size: 14px;
  126. line-height: 1.5;
  127. padding: 7px;
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement