RobotGhetto

Popup Video Code

Aug 18th, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.67 KB | None | 0 0
  1. /* CSS */
  2. padding-top: (@paddingTop * 15px);
  3. padding-bottom: (@paddingBottom * 15px);
  4. & when (@bg-type = 'color') {
  5.  background-color: @bg-value;
  6. }
  7. & when (@bg-type = 'image') {
  8.  background-image: url(@bg-value);
  9. }
  10. .main-row {
  11.   & when (@reverseContent) {
  12.    -webkit-flex-direction: row-reverse;
  13.     flex-direction: row-reverse;
  14.   }
  15. }
  16. .mbr-figure img {
  17.   border-radius: .25rem;
  18. }
  19. .mbr-text {
  20.   color: #8d97ad;
  21. }
  22. .mbr-media {
  23.   display: flex;
  24.   & when (@buttonsAlign = "left") {
  25.    -webkit-justify-content: flex-start;
  26.     justify-content: flex-start;
  27.   }
  28.   & when (@buttonsAlign = "center") {
  29.    -webkit-justify-content: center;
  30.     justify-content: center;
  31.   }
  32.   & when (@buttonsAlign = "right") {
  33.    -webkit-justify-content: flex-end;
  34.     justify-content: flex-end;
  35.   }
  36. }
  37. .play {
  38.   width: 0;
  39.   height: 0;
  40.   border-style: solid;
  41.   border-width: 10px 0 10px 15px;
  42.   @newColor: contrast(@playColor);
  43.   border-color: transparent transparent transparent @newColor;
  44.   margin-right: -3px;
  45. }
  46. .btn-play {
  47.   box-shadow: 2px 8px 20px rgba(115, 128, 157, 0.3);
  48.   -webkit-flex-shrink: 0;
  49.   flex-shrink: 0;
  50.   position: relative;
  51.   background: @playColor;
  52.   width: 60px;
  53.   height: 60px;
  54.   border: 1px solid @playColor;
  55.   -webkit-border-radius: 50px;
  56.   border-radius: 50px;
  57.   text-align: center;
  58.   line-height: 60px;
  59.   font-size: 27px;
  60.   cursor: pointer;
  61.   display: inline-flex;
  62.   -webkit-justify-content: center;
  63.   justify-content: center;
  64.   -webkit-align-items: center;
  65.   align-items: center;
  66.   -webkit-transition: 0.15s ease-in-out;
  67.   transition: 0.15s ease-in-out;
  68.   -webkit-transition-property: color, background, border-color;
  69.   transition-property: color, background, border-color;
  70. }
  71. .modalWindow {
  72.   display: none;
  73.   position: fixed;
  74.   z-index: 5000;
  75.   left: 0;
  76.   top: 0;
  77.   background-color: rgba(61, 61, 61, 0.65);
  78.   width: 100%;
  79.   height: 100%;
  80.   .modalWindow-container {
  81.     display: table-cell;
  82.     vertical-align: middle;
  83.   }
  84.   .modalWindow-video {
  85.     height: calc(80vw / 1.778);
  86.     width: 80vw;
  87.     margin: 0 auto;
  88.   }
  89. }
  90. .wrapper-video {
  91.   display: flex;
  92.   -webkit-align-items: center;
  93.   align-items: center;
  94. }
  95. .icon-description {
  96.   margin-left: 1rem;
  97.   color: #ff64a3;
  98. }
  99. a.close {
  100.   position: absolute;
  101.   right: 4vw;
  102.   top: 4vh;
  103.   color: #ffffff;
  104.   z-index: 5000000;
  105.   font-size: 37px;
  106.   background: #000;
  107.   padding: 20px;
  108.   border-radius: 50%;
  109.   &:hover {
  110.    color: #ffffff;
  111.   }
  112. }
  113. @media (max-width: 767px) {
  114.   .mbr-section-title, .mbr-text {
  115.     text-align: center;
  116.   }
  117.   .wrapper-video {
  118.     -webkit-justify-content: center !important;
  119.     justify-content: center !important;
  120.   }
  121. }
  122. .mbr-fallback-image.disabled {
  123.   display: none;
  124. }
  125. .mbr-fallback-image {
  126.   display: block;
  127.   background-size: cover;
  128.   background-position: center center;
  129.   width: 100%;
  130.   height: 100%;
  131.   position: absolute;
  132.   top: 0;
  133.   & when (@bg-type = 'video') {
  134.    background-image: url(@fallBackImage);
  135.   }
  136. }
  137. H2 {
  138.   color: #ff64a3;
  139. }
  140.  
  141.  
  142.  
  143.  
  144. <!-- HTML -->
  145. <section data-bs-version="5.1" class="features15 businessm4_features15" group="Features" data-bg-video="{{bg.type == 'video' && bg.value.url}}" plugins="PlayerVimeo" mbr-class="{'mbr-fullscreen': fullScreen,
  146.                    'mbr-parallax-background': bg.parallax}">
  147.  
  148.     <mbr-parameters>
  149.        
  150.         <header>Size</header>
  151.         <input type="range" inline title="Top" name="paddingTop" min="0" max="8" step="1" value="6">
  152.         <input type="range" inline title="Bottom" name="paddingBottom" min="0" max="8" step="1" value="6">
  153.         <header>Show / Hide</header>
  154.         <input type="checkbox" title="Title" name="showTitle" checked>
  155.         <input type="checkbox" title="Text" name="showText" checked>
  156.         <input type="checkbox" title="Popup Video" name="showVideo" checked>
  157.         <input type="checkbox" title="Description" name="showDescription" condition="showVideo" checked>
  158.         <input type="text" title="Modal Video" name="modalVideo" value="https://youtu.be/iM-NestDPNQ" condition="showVideo">
  159.         <select name="buttonsAlign" title="Buttons Align" condition="showVideo">
  160.             <option value="left" selected>left</option>
  161.             <option value="center">center</option>
  162.             <option value="right">right</option>
  163.         </select>
  164.         <input type="checkbox" title="Image on Right/Left" name="reverseContent" checked>
  165.         <header>Background</header>
  166.         <input type="color" title="Play Btn" name="playColor" value="#ff4f7b" condition="showVideo">
  167.         <fieldset type="background" name="bg" parallax>
  168.             <input type="image" value="../_images/background8.jpg" title="Image" parallax>
  169.             <input type="color" value="#000000" title="Color" selected>
  170.             <input type="video" value="https://youtu.be/iM-NestDPNQ" title="Video">
  171.         </fieldset>
  172.         <header condition="bg.type === 'video'">Fallback Image</header>
  173.         <input type="image" title="Fallback Image" value="../_images/background1.jpg" name="fallBackImage" condition="bg.type === 'video'">
  174.  
  175.         <input type="checkbox" title="Overlay" name="overlay" condition="bg.type !== 'color'">
  176.         <input type="color" title="Overlay Color" name="overlayColor" value="#8d97ad" condition="overlay && bg.type !== 'color'">
  177.         <input type="range" inline title="Opacity" name="overlayOpacity" min="0" max="1" step="0.1" value="0.2" condition="overlay && bg.type !== 'color'">
  178.        
  179.     </mbr-parameters>
  180.     <div class="mbr-fallback-image disabled" mbr-if="bg.type == 'video'"></div>
  181.  
  182.  
  183.     <div class="mbr-overlay" mbr-if="overlay && bg.type!== 'color'" mbr-style="{'opacity': overlayOpacity, 'background-color': overlayColor}">
  184.     </div>
  185.  
  186.     <div class="container align-center">
  187.         <div class="row justify-content-center align-items-center main-row">
  188.             <div class="col-md-6">
  189.                 <h2 class="mbr-section-title align-left py-2 mbr-fonts-style" mbr-theme-style="display-2" mbr-if="showTitle">
  190.                     INTRO WITH VIDEO POPUP
  191.                 </h2>
  192.                 <p class="mbr-text align-left py-2 mbr-fonts-style" mbr-theme-style="display-7" mbr-if="showText" data-app-selector=".mbr-text,.mbr-section-btn">
  193.                     Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde, voluptatum dicta, rerum cumque vitae
  194.                     maxime, ut dolorem consectetur minima impedit rem earum illum, doloribus reprehenderit. In
  195.                     perferendis voluptatum aut reprehenderit.
  196.                 </p>
  197.                 <div class="wrapper-video" mbr-if="showVideo" mbr-class="{'justify-content-center':buttonsAlign=='center',
  198.                                 'justify-content-start':buttonsAlign=='left',
  199.                                 'justify-content-end':buttonsAlign=='right'}">
  200.                     <div class="mbr-media show-modal align-left py-2" data-modal=".modalWindow">
  201.                         <div class="btn-play" data-modal=".modalWindow">
  202.                             <span class="play"></span>
  203.                         </div>
  204.                     </div>
  205.                     <div mbr-text class="icon-description align-center mbr-fonts-style" mbr-theme-style="display-7" mbr-if="showDescription" data-app-selector=".icon-description"><b>Play the video</b></div>
  206.                 </div>
  207.             </div>
  208.  
  209.             <div class="col-md-6 py-3 ">
  210.                 <div class="mbr-figure">
  211.                     <img src="file:///Users/ME/Library/Application%20Support/Mobirise.com/Mobirise/projects/project-2025-08-20_213824/assets/images/mbr.jpg" alt="Mobirise">
  212.                 </div>
  213.             </div>
  214.         </div>
  215.     </div>
  216.     <div>
  217.         <div class="modalWindow">
  218.             <div class="modalWindow-container">
  219.                 <div class="modalWindow-video-container">
  220.                     <div class="modalWindow-video">
  221.                         <iframe width="100%" height="100%" data-src="{{modalVideo}}" frameborder="0" allowfullscreen="1"></iframe>
  222.                     </div>
  223.                     <a class="close" role="button" data-dismiss="modal" data-bs-dismiss="modal">
  224.                         <span aria-hidden="true" class="mbri-close mbr-iconfont closeModal"></span>
  225.                         <span class="sr-only visually-hidden">Close</span>
  226.                     </a>
  227.                 </div>
  228.             </div>
  229.         </div>
  230.     </div>
  231. </section>
Advertisement
Add Comment
Please, Sign In to add comment