NeoPopup 是一個現代的、可自訂的、響應式的 3D 彈出模組,專為時尚和專業的 Web 介面而設計。透過主題、動畫和自訂選項,此模組可以輕鬆地為您的網站添加令人驚嘆的彈出視窗。
複製儲存庫或下載模組檔案:
git clone https://github.com/BOSS294/NeoPopup.git
將 JavaScript 檔案包含在您的專案中:
<script src="path/to/developmentPopup.js"></script>
developmentPopup.init({ title: "Welcome to NeoPopup!", body: "Thank you for exploring the modern 3D popup module.", buttonText: "Learn More", buttonCallback: () => window.open('https://github.com/BOSS294/NeoPopup', '_blank'), });
Option | Type | Default | Description |
---|---|---|---|
title | string | "Under Development" | Title of the popup. |
body | string | "Oops!" | Body content (HTML supported). |
buttonText | string | "Check Latest Updates" | Text for the main button. |
buttonCallback | function | null | Callback function for the main button click. |
position | string | "bottom-right" | Popup position: top-right, top-left, bottom-right, or bottom-left. |
theme | string | "dark" | Theme for the popup: dark or light. |
colors | object | {} | Custom colors: { background, text, button }. |
size | object | {} | Size options: { width, height }. |
animation | string | "slide" | Animation type. |
autoClose | boolean | false | Automatically close the popup. |
closeDuration | number | 5000 | Auto-close duration in milliseconds. |
persistent | boolean | false | Prevent popup from showing repeatedly using local storage. |
要包含 NeoPopup 的內建樣式,請確保滿足以下條件:
要進一步自訂設計,請修改包含的 CSS:
git clone https://github.com/BOSS294/NeoPopup.git
<script src="path/to/developmentPopup.js"></script>
歡迎貢獻!您可以透過以下方式提供協助:
如有任何疑問或功能請求:
該專案已獲得 MIT 許可證的許可。有關詳細信息,請參閱許可證文件。
由 Mayank Chawdhari 與 ❤️ 一起開發。 ?
以上是NeoPopup - 現代彈出模組的詳細內容。更多資訊請關注PHP中文網其他相關文章!