Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <style>
  2. .popup {
  3. position: fixed;
  4. top: 50%;
  5. left: 50%;
  6. width: 90%;
  7. max-width: 500px;
  8. height: auto;
  9. z-index: 2000;
  10. visibility: hidden;
  11. -webkit-backface-visibility: hidden;
  12. -moz-backface-visibility: hidden;
  13. backface-visibility: hidden;
  14. -webkit-transform: translateX(-50%) translateY(-50%);
  15. -moz-transform: translateX(-50%) translateY(-50%);
  16. -ms-transform: translateX(-50%) translateY(-50%);
  17. transform: translateX(-50%) translateY(-50%);
  18. }
  19. .popup .banner h6, .popup .banner-main .swiper-pagination {
  20. display: none;
  21. }
  22. .popup img {
  23. width: 100%;
  24. }
  25. .popup .title {
  26. position: absolute;
  27. left: 0px;
  28. top: -25px;
  29. color: #fff;
  30. text-transform: uppercase;
  31. font-size: 11px;
  32. letter-spacing: 1px;
  33. font-weight: 300;
  34. }
  35. .popup .close-btn {
  36. position: absolute;
  37. right: 0px;
  38. top: -30px;
  39. color: #fff;
  40. cursor: pointer;
  41. }
  42. .popup .close-btn img {
  43. width: 19px;
  44. }
  45. .p-show {
  46. visibility: visible;
  47. }
  48.  
  49. .p-end {
  50. position: fixed;
  51. width: 100%;
  52. height: 100%;
  53. visibility: hidden;
  54. top: 0;
  55. left: 0;
  56. z-index: 1000;
  57. opacity: 0;
  58. background: rgba(0,0,0,0.5);
  59. -webkit-transition: all 1s;
  60. -moz-transition: all 1s;
  61. transition: all 1s;
  62. }
  63.  
  64. .p-show ~ .p-end {
  65. opacity: 1;
  66. visibility: visible;
  67. }
  68.  
  69. .p-banner {
  70. color: #fff;
  71. background: #fff;
  72. position: relative;
  73. border-radius: 3px;
  74. margin: 0 auto;
  75. -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
  76. -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
  77. box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
  78.  
  79. }
  80. .p-banner img
  81. {
  82. margin-bottom: -5px;
  83. }
  84.  
  85. .p-effect .p-banner {
  86. -webkit-transform: translateY(-50%);
  87. -moz-transform: translateY(-50%);
  88. -ms-transform: translateY(-50%);
  89. transform: translateY(-50%);
  90. opacity: 0;
  91. -webkit-transition: all 1s;
  92. -moz-transition: all 1s;
  93. transition: all 1s;
  94. }
  95.  
  96. .p-show.p-effect .p-banner {
  97. -webkit-transform: translateY(0);
  98. -moz-transform: translateY(0);
  99. -ms-transform: translateY(0);
  100. transform: translateY(0);
  101. opacity: 1;
  102. }
  103.  
  104. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement