Advertisement
Guest User

blur effect on hover

a guest
Dec 15th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. .blog-posts.hfeed {
  2. width: 100%;
  3. }
  4.  
  5. .gallery-wrapper {
  6. position: relative;
  7. max-width: 100%;
  8. padding: 3%;
  9. }
  10.  
  11.  
  12.  
  13. .gallery_image {
  14. position:relative;
  15. overflow:hidden;
  16. max-width:100%;
  17. height:auto;
  18.  
  19. }
  20.  
  21. img.gallry_img {
  22. width: 100%;
  23. max-width: 100%;
  24. height:auto;
  25. }
  26. .mask{
  27. width:100%;
  28. height: 100%;
  29. position: absolute;
  30. overflow: hidden;
  31. top: 0;
  32. left: 0;
  33. background: #000;
  34. background-color: rgba(0,0,0,0);
  35. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  36. filter: alpha(opacity=0);
  37. opacity: 0;
  38. -webkit-transition: all 0.4s ease-in-out;
  39. -moz-transition: all 0.4s ease-in-out;
  40. -o-transition: all 0.4s ease-in-out;
  41. -ms-transition: all 0.4s ease-in-out;
  42. transition: all 0.4s ease-in-out;
  43. text-align: center;
  44.  
  45. }
  46. .mask_circle {
  47. opacity: 0;
  48. }
  49. .mask_circle img {
  50. width: 0px;
  51. height: auto!important;
  52. }
  53. .mask .mask_circle {
  54. border-radius: 200px;
  55. padding: 13px;
  56. background: #fff;
  57. background-color: rgba(256, 256, 256, 0);
  58. width: 0px;
  59. height: 0px;
  60. margin: auto;
  61. position: absolute;
  62. top: -100%;
  63. left: 39%;
  64. }
  65.  
  66. .gallery-wrapper:hover .mask .mask_circle{
  67. -webkit-animation-name: bigEntrance;
  68. animation-name: bigEntrance;
  69. -moz-animation-name: bigEntrance;
  70. -o-animation-name: bigEntrance;
  71. -webkit-animation-duration: 1.2s;
  72. animation-duration: 1.2s;
  73. -moz-animation-duration: 1.2s;
  74. -o-animation-duration: 1.2s;
  75. -webkit-animation-timing-function: ease-in-out;
  76. animation-timing-function: ease-in-out;
  77. -webkit-animation-iteration-count: 1;
  78. animation-iteration-count: 1;
  79. }
  80.  
  81. .gallery-wrapper:hover img.gallry_img {
  82. -webkit-transition: all 0.4s ease-in-out;
  83. -moz-transition: all 0.4s ease-in-out;
  84. -o-transition: all 0.4s ease-in-out;
  85. -ms-transition: all 0.4s ease-in-out;
  86. transition: all 0.4s ease-in-out;
  87. -webkit-filter: blur(-3px);
  88. filter: blur(-3px);
  89. -moz-filter: blur(-3px);
  90. }
  91.  
  92. .gallery-wrapper:hover .mask,.gallery-wrapper:hover .mask_circle {
  93. -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)";
  94. filter: alpha(opacity=100);
  95. opacity: 1;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement