fmyter

Figma Site Pop-Up Code (Weavely.ai Form)

Oct 3rd, 2025
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.13 KB | Software | 0 0
  1. <div id="popup">
  2.   <button id="close">&times;</button>
  3.   <div data-weavely-form="8f8b93dd-94cf-4dff-8a21-cccbef407f44" data-weavely-mode="embed" style="height:100%;width:100%"></div>
  4. </div>
  5.  
  6. <script>
  7.   setTimeout(() => {
  8.     document.getElementById('popup').style.display = 'block';
  9.   }, 1000);
  10.  
  11.   document.getElementById('close').onclick = () => {
  12.     document.getElementById('popup').style.display = 'none';
  13.   };
  14. </script>
  15.  
  16. <style>
  17.   #popup {
  18.     display: none;
  19.     position: fixed;
  20.     bottom: 20px;
  21.     right: 20px;
  22.     width: 400px;
  23.     height: 500px;
  24.     border-radius: 8px;
  25.     overflow: hidden;
  26.     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  27.     z-index: 1000;
  28.   }
  29.   #close {
  30.     position: absolute;
  31.     top: 10px;
  32.     right: 10px;
  33.     background: none;
  34.     border: none;
  35.     font-size: 24px;
  36.     cursor: pointer;
  37.     color: #666;
  38.   }
  39.   @media (max-width: 768px) {
  40.       #popup {
  41.         width: 90%;
  42.         height: 70%;
  43.         bottom: 50%;
  44.         right: 50%;
  45.         transform: translate(50%, 50%);
  46.       }
  47.       #close {
  48.         font-size: 32px;
  49.         padding: 10px;
  50.       }
  51.     }
  52. </style>
Advertisement
Add Comment
Please, Sign In to add comment