Guest User

Untitled

a guest
Dec 13th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. <div class="col-4 projects-post webdesign justify-content-center mb-4">
  2. <div class="projects-post-img text-center p-2 w-100">
  3. <a href="img/projects/photo1.jpg">
  4. <img class="w-100 h-100" src="img/projects/photo-1.jpg" alt="" />
  5. </a>
  6. <div class="projects-post__arrow">
  7. <img src="img/projects/arrow.png" alt="">
  8. </div>
  9. </div>
  10. <div class="projects-post-text pl-4">
  11. <h5 class="projects-post-text__title">Claritas Etiam Processus</h5>
  12. <small class="projects-post-text__subtitle">Photography, Nature</small>
  13. </div>
  14. </div>
  15. <div class="col-4 projects-post webdesign justify-content-center mb-4">
  16. <div class="projects-post-img text-center p-2 w-100">
  17. <a href="img/projects/photo2.jpg">
  18. <img class="w-100 h-100" src="img/projects/photo-2.jpg" alt="" />
  19. </a>
  20. <div class="projects-post__arrow">
  21. <img src="img/projects/arrow.png" alt="">
  22. </div>
  23. </div>
  24. <div class="projects-post-text pl-4">
  25. <h5 class="projects-post-text__title">Quam Nutamus Farum</h5>
  26. <small class="projects-post-text__subtitle">Graphic Design, Mock-Up</small>
  27. </div>
  28. </div>
  29. <div class="col-4 projects-post mobile justify-content-center mb-4">
  30. <div class="projects-post-img text-center p-2 w-100">
  31. <a href="img/projects/photo3.jpg">
  32. <img class="w-100 h-100" src="img/projects/photo-3.jpg" alt="">
  33. </a>
  34. <div class="projects-post__arrow">
  35. <img src="img/projects/arrow.png" alt="">
  36. </div>
  37. </div>
  38. <div class="projects-post-text pl-4">
  39. <h5 class="projects-post-text__title">Usus Legentis Videntur</h5>
  40. <small class="projects-post-text__subtitle">Photography, Holiday</small>
  41. </div>
  42. </div>
  43.  
  44. .projects-post {
  45. background-color: #fbfaf8;
  46. }
  47.  
  48. .projects-post-img {
  49. position: relative;
  50. text-align: center;
  51. }
  52.  
  53. .projects-post-img a {
  54. display: block;
  55. position: relative;
  56. }
  57.  
  58. .projects-post-img a:after {
  59. content: '';
  60. position: absolute;
  61. top: 0;
  62. left: 0;
  63. right: 0;
  64. bottom: 0;
  65. background: rgba(0, 0, 0, 0.5);
  66. opacity: 0;
  67. }
  68.  
  69. .projects-post-img a:before {
  70. content: '';
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. right: 0;
  75. bottom: 0;
  76. background: url("../img/projects/lupa.png") center no-repeat;
  77. opacity: 0;
  78. z-index: 10;
  79. }
  80.  
  81. .projects-post-img a:hover:before,
  82. .projects-post-img a:hover:after {
  83. opacity: 1;
  84. }
  85.  
  86. .projects-post__arrow {
  87. position: absolute;
  88. bottom: 3px;
  89. left: 30px;
  90. }
  91.  
  92. .projects-post-text {
  93. padding-top: 20px;
  94. padding-bottom: 15px;
  95. }
  96.  
  97. .projects-post-text__title {
  98. color: #c7b299;
  99. font-family: 'Raleway';
  100. font-size: 18px;
  101. font-weight: 500;
  102. }
  103.  
  104. .projects-post-text__subtitle {
  105. color: #d1d1d1;
  106. font-family: 'Montserrat';
  107. font-size: 14px;
  108. font-weight: 300;
  109. line-height: 20px;
  110. }
  111.  
  112. $('.projects-post').mouseenter(function(){
  113. $(this).find('.projects-post__arrow>img').attr('src','../img/projects/arrow-activ.png');
  114. $(this).find('.projects-post-img').css('background-color','#362f2d');
  115. $(this).find('.projects-post-text').css('background-color','#362f2d');
  116. });
  117. $('.projects-post').mouseleave(function(){
  118. $(this).find('.projects-post__arrow>img').attr('src','../img/projects/arrow.png');
  119. $(this).find('.projects-post-img').css('background-color','#fbfaf8');
  120. $(this).find('.projects-post-text').css('background-color','#fbfaf8');
  121. });
Add Comment
Please, Sign In to add comment