hover.css 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * CSS code in this page.
  4. *
  5. * Copyleft 2018 Jesus E.
  6. *
  7. * @licend The above is the entire license notice
  8. * for the CSS code in this page.
  9. *
  10. */
  11. .ihover {
  12. display: block;
  13. position: relative;
  14. box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.3), 0 1px 0px 0px rgba(0, 0, 0, 0.05);
  15. overflow: hidden;
  16. -webkit-font-smoothing: antialiased;
  17. }
  18. /*transition*/
  19. .ihover, .ihover:after, .ihover:before {
  20. -moz-transition: all .5s cubic-bezier(0.54, 0, 0.1, 1);
  21. -ms-transition: all .5s cubic-bezier(0.54, 0, 0.1, 1);
  22. -o-transition: all .5s cubic-bezier(0.54, 0, 0.1, 1);
  23. -webkit-transition: left .5s cubic-bezier(0.54, 0, 0.1, 1);
  24. transition: all .5s cubic-bezier(0.54, 0, 0.1, 1);
  25. }
  26. .ihover > img {
  27. max-width: 100%;
  28. display: block;
  29. }
  30. .ihover:before, .ihover:after {
  31. position: absolute;
  32. background: url(../images/hover/lupa.png) no-repeat center center rgba(0,0,0,0.8);
  33. }
  34. /*slide circle 3*/
  35. .ihover.circle3:before {
  36. content: "";
  37. top: 50%;
  38. left: 50%;
  39. width: 80px;
  40. height: 80px;
  41. border-radius: 50%;
  42. opacity: 0;
  43. -webkit-transform: translate(-50%, -50%) scale(1.4);
  44. -moz-transform: translate(-50%, -50%) scale(1.4);
  45. -ms-transform: translate(-50%, -50%) scale(1.4);
  46. -o-transform: translate(-50%, -50%) scale(1.4);
  47. transform: translate(-50%, -50%) scale(1.4);
  48. }
  49. .ihover.circle3:hover:before {
  50. opacity: 1;
  51. -webkit-transform: translate(-50%, -50%) scale(1);
  52. -moz-transform: translate(-50%, -50%) scale(1);
  53. -ms-transform: translate(-50%, -50%) scale(1);
  54. -o-transform: translate(-50%, -50%) scale(1);
  55. transform: translate(-50%, -50%) scale(1);
  56. }