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中文网其他相关文章!