Guest User

Untitled

a guest
Nov 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. <div class="popup" onclick="myFunctionlowery()">
  2. <img src="http://wellscreate.com/wp-
  3. content/uploads/2017/11/7K0C0970.00_05_07_29.Still003.jpg" alt="" style="" />
  4. <div class="coverlay">
  5. <span class="popuptext" id="lowery">
  6. <div style="position:relative; top:10vh; width:100%; max-width:1000px;
  7. margin:0 auto;">
  8. <iframe style="width:100%; max-width:1000px; height:50vw;
  9. max-height:700px;" src="https://www.youtube.com/embed/O46xDFbhHtg?
  10. autoplay=true" frameborder="0" allowfullscreen>
  11. </iframe>
  12. </div>
  13. </span>
  14. </div>
  15. </div>
  16.  
  17. .popup {
  18. position: relative;
  19. display: inline-block;
  20. cursor: pointer;
  21. }
  22.  
  23. /* The actual popup (appears on top) */
  24. .popup .popuptext {
  25. display:none;
  26. width: 100vw;
  27. height:100vh;
  28. background: rgba(0,0,0,.8);
  29. border-radius: 6px;
  30. position: fixed;
  31. z-index:1;
  32. top:0;
  33. left:0;
  34. right:0;
  35. bottom:0;
  36. }
  37.  
  38. /* Toggle this class when clicking on the popup container (hide and show the popup) */
  39. .popup .show {
  40. display:block;
  41. -webkit-animation: fadeIn 1s;
  42. animation: fadeIn 1s
  43. }
  44.  
  45. /* Add animation (fade in the popup) */
  46. @-webkit-keyframes fadeIn {
  47. from {opacity: 0;}
  48. to {opacity: 1;}
  49. }
  50.  
  51. @keyframes fadeIn {
  52. from {opacity: 0;}
  53. to {opacity:1 ;}
  54. }
  55.  
  56. .coverlay{position:absolute;
  57. bottom: 10px;
  58. left: 0;
  59. right: 0;
  60. height: 100%;
  61. width: 100%;
  62. background: rgba(250,250,250,.0);
  63. border-radius: 8px 8px 0 0;
  64. transition: background .5s;
  65. background-image:url("http://wellscreate.com/wp-
  66. content/uploads/2017/11/Untitled-1-01.png");
  67. background-position: center bottom;
  68. background-repeat:no-repeat;
  69. background-size:15%;
  70. }
  71.  
  72. .coverlay:hover{
  73. background: rgba(250,250,250,.5);
  74. background-image:url("http://wellscreate.com/wp-
  75. content/uploads/2017/11/Untitled-1-01.png");
  76. background-position: center;
  77. background-repeat:no-repeat;
  78. background-size:16%;
  79. }
  80.  
  81. function myFunctionlowery() {
  82. var popup = document.getElementById("lowery");
  83. popup.classList.toggle("show");
  84. }
Add Comment
Please, Sign In to add comment