Press "Enter" to skip to content

jQuery Plugin Easy-To-Use Modal Popup | yBox

yBox is an animated, easy-to-use, feature-rich plugin and a jQuery modal popup for any web content such as text, iframes, images, galleries, and much more.

More advantages:

  • Easy to implement without any JS call.
  • Supports YouTube videos.
  • AJAX content is also supported.
  • It allows you to open another mod from within the current one.
  • It allows you to move between pictures using the keyboard.

How to make use of it:

1. To use this modal popup plugin, download and insert the next information into your HTML web page.

<!-- jQuery (required) -->
<script src="/path/to/cdn/jquery.min.js"></script>
<!-- yBox Stylesheet -->
<link rel="stylesheet" href="/path/to/dist/css/yBox.min.css" />
<!-- yBox Directives (optional) -->
<script src="/path/to/dist/js/directive.min.js"></script>
<!-- yBox JavaScript -->
<script src="/path/to/dist/js/yBox.min.js"></script>

2. Add the CSS class ‘yBox’ to the set-off component and specify the selector of the content to be displayed within the modal popup.

<a href="#content" class="yBox">Trigger Link</a>
<div style="display:none;">
  <div id="content">
    Any <a href="https://www.jqueryscript.net/tags.php?/Modal/">Modal</a> Content Here
  </div>
</div>

3. You may also show a modal popup on web page load utilizing the yBox technique.

yBox('WelCome!');

4. Fetch and show an iframe (like a Youtube video) within the modal popup.

<a href="https://www.youtube.com/watch?v=eEMpCcLm6NI&list=RDeEMpCcLm6NI&start_radio=1" class="yBox yBox_iframe" rel="nofollow" title="Click Here">
  <img src="https://img.youtube.com/vi/eEMpCcLm6NI/0.jpg"  />
</a>

5. Apply an extra CSS class to the modal popup.

<a href="#content" data-ybox-class="myYboxClass" class="yBox">
  Trigger Link
</a>

6. Fetch and show an exterior web page to the modal popup by way of AJAX requests.

<a href="https://www.google.com" class="yBox yBox_ajax">Click Me</a>

7. Create a gallery lightbox by grouping your photographs utilizing the data-ybox-group attribute:

<a href="1.jpg" class="yBox" data-ybox-group="group1">
  <img src="1.jpg" alt="" width="200" />
</a>
<a href="2.jpg" class="yBox" data-ybox-group="group1">
  <img src="2.jpg" alt="" width="200" />
</a>
<a href="3.jpg" class="yBox" data-ybox-group="group1">
  <img src="3.jpg" alt="" width="200" />
</a>

Advanced Modal Popup Plugin, yBox jQuery Github

Read More  Simple and Lightweight LazyLoad Embed Vimeo Player Plugin in Pure JavaScript

See Demo And Download

Official Website(yuval123123): Click Here

This superior jQuery/javascript plugin is developed by yuval123123. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *