<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Sameer Mulla</title>
    <description>The latest articles on Forem by Sameer Mulla (@sammulla47).</description>
    <link>https://forem.com/sammulla47</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F966504%2F31f2a4da-5fef-4647-a414-fa52859ab603.png</url>
      <title>Forem: Sameer Mulla</title>
      <link>https://forem.com/sammulla47</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sammulla47"/>
    <language>en</language>
    <item>
      <title>Bootstrap Multi-Select Option with Checkbox in Bootstrap 5.2</title>
      <dc:creator>Sameer Mulla</dc:creator>
      <pubDate>Thu, 09 Nov 2023 01:44:15 +0000</pubDate>
      <link>https://forem.com/sammulla47/bootstrap-multi-select-option-with-checkbox-in-bootstrap-52-1iak</link>
      <guid>https://forem.com/sammulla47/bootstrap-multi-select-option-with-checkbox-in-bootstrap-52-1iak</guid>
      <description>&lt;p&gt;Bootstrap is a powerful framework for building responsive and feature-rich web applications. One of the key components of a web application is the ability to select multiple options from a list. Bootstrap Multi-Select with checkboxes allows users to easily make multiple selections from a dropdown list. In this blog post, we will guide you through creating a Bootstrap Multi-Select Option with checkboxes using Bootstrap 5.2.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/sammulla47/bootstrap-multiselect-solution"&gt;Code View&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Live : &lt;a href="https://sammulla47.github.io/bootstrap-multiselect-solution/"&gt;Live View&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Prerequisites&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Before we start, make sure you have the following prerequisites installed in your project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bootstrap 5.2&lt;/li&gt;
&lt;li&gt;jQuery 3.7.1&lt;/li&gt;
&lt;li&gt;Bootstrap Multi-Select 1.1.2&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can include them in your project by adding the following CDN links to your HTML file's &lt;/p&gt; section:&lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" /&amp;gt;
&amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/1.1.2/css/bootstrap-multiselect.min.css" integrity="sha512-fZNmykQ6RlCyzGl9he+ScLrlU0LWeaR6MO/Kq9lelfXOw54O63gizFMSD5fVgZvU1YfDIc6mxom5n60qJ1nCrQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /&amp;gt;
&amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/1.1.2/js/bootstrap-multiselect.min.js" integrity="sha512-lxQ4VnKKW7foGFV6L9zlSe+6QppP9B2t+tMMaV4s4iqAv4iHIyXED7O+fke1VeLNaRdoVkVt8Hw/jmZ+XocsXQ==" crossorigin="anonymous" referrerpolicy="no-referrer"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Creating the Bootstrap Multi-Select&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Let's create a Bootstrap Multi-Select with checkboxes in your HTML file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="d-flex text-left align-items-center w-100"&amp;gt;
    &amp;lt;strong class="sl"&amp;gt;Select Language:&amp;lt;/strong&amp;gt;
    &amp;lt;select id="multiple-checkboxes" multiple="multiple"&amp;gt;
        &amp;lt;option value="front-end"&amp;gt;Front End&amp;lt;/option&amp;gt;
        &amp;lt;option value="back-end"&amp;gt;Back End&amp;lt;/option&amp;gt;
    &amp;lt;/select&amp;gt;
    &amp;lt;br&amp;gt;
    &amp;lt;select name="property_nhb[]" id="p-nhb" multiple&amp;gt;
        &amp;lt;option data-value="" value="" selected&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option data-value="back-end" value="php"&amp;gt;PHP&amp;lt;/option&amp;gt;
        &amp;lt;option data-value="front-end" value="javascript"&amp;gt;JavaScript&amp;lt;/option&amp;gt;
        &amp;lt;option data-value="back-end" value="java"&amp;gt;Java&amp;lt;/option&amp;gt;
        &amp;lt;option data-value="back-end" value="sql"&amp;gt;.Net&amp;lt;/option&amp;gt;
        &amp;lt;option data-value="front-end" value="jquery"&amp;gt;Jquery&amp;lt;/option&amp;gt;
        &amp;lt;option data-value="front-end" value=".net"&amp;gt;.Net&amp;lt;/option&amp;gt;
    &amp;lt;/select&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we have two &lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt; elements, one with the id "multiple-checkboxes" for selecting languages and another with the id "p-nhb" for selecting programming languages.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Initializing the Bootstrap Multi-Select&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;To enable the Bootstrap Multi-Select with checkboxes, we need to initialize it using JavaScript. Add the following script at the end of your HTML file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
    $('#multiple-checkboxes').multiselect({
        buttonClass: 'form-select',
        templates: {
            button: '&amp;lt;button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"&amp;gt;&amp;lt;span class="multiselect-selected-text"&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;',
        }
    });

    $('#p-nhb').multiselect({
        buttonClass: 'form-select',
        templates: {
            button: '&amp;lt;button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown" &amp;gt;&amp;lt;span class="multiselect-selected-text"&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;',
        }
    });

    var select_clone = $('&amp;lt;select&amp;gt;')
        .html($('#p-nhb option'))
        .hide()
        .insertAfter('#p-nhb');

    $('#p-nhb').multiselect();

    $('#multiple-checkboxes').change(function () {
        $('#p-nhb').html(select_clone.find('[data-value="' + this.value + '"]').clone());
        $('#p-nhb').multiselect('rebuild');
    }).change();

    $('#get').click(function () {
        console.log('city: ' + $('#multiple-checkboxes').val() + ', neighborhood: ' + $('#p-nhb').val().toString());
    });
&amp;lt;/script&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This script initializes the Bootstrap Multi-Select for both  elements and provides functionality to update the options in the "p-nhb" dropdown based on the selections in the "multiple-checkboxes" dropdown.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;In this blog post, we've shown you how to create a Bootstrap Multi-Select Option with checkboxes using Bootstrap 5.2. This feature can be valuable in various scenarios where you need to allow users to make multiple selections from a list of options. You can customize the appearance and behavior of the multi-select dropdown according to your project's requirements.&lt;/p&gt;

</description>
      <category>bootstrap</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>bootstrapmultiselect</category>
    </item>
    <item>
      <title>Elevate Your Website's Image Carousel with Owl Carousel Two, Elevated Zoom, and Fancybox Integration</title>
      <dc:creator>Sameer Mulla</dc:creator>
      <pubDate>Mon, 09 Oct 2023 01:26:34 +0000</pubDate>
      <link>https://forem.com/sammulla47/elevate-your-websites-image-carousel-with-owl-carousel-two-elevated-zoom-and-fancybox-integration-5d87</link>
      <guid>https://forem.com/sammulla47/elevate-your-websites-image-carousel-with-owl-carousel-two-elevated-zoom-and-fancybox-integration-5d87</guid>
      <description>&lt;p&gt;If you're looking to elevate your website's image carousel experience, look no further than the Owl Carousel Two Integration with Elevated Zoom and Fancybox. This integration combines powerful features to enhance the way your users interact with images on your website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CjneJaiR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ntn94qpkce3ish62xzd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CjneJaiR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ntn94qpkce3ish62xzd.png" alt="Elevate Your Website's Image Carousel with Owl Carousel Two, Elevated Zoom, and Fancybox Integration" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Hmtl Code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div id="slider" class="main-carousel owl-carousel positive-relative"&amp;gt;
  &amp;lt;div class="item"&amp;gt;
    &amp;lt;a href="images/one.jpg" data-fancybox="gallery"&amp;gt;
      &amp;lt;img id="zoom_05" src="images/one.jpg" data-zoom-images="images/one.jpg" alt=""&amp;gt;
    &amp;lt;/a&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;!-- Add more carousel items here --&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Javascript Custom Code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; // Activate Fancybox for a sleek image viewing experience.
$('.fancybox').fancybox();
// Enable Elevated Zoom for larger screens (min-width: 992px)
if (window.matchMedia('(min-width: 992px)').matches) {
  $('#zoom_05').ezPlus({
    zoomType: 'inner',
    cursor: 'crosshair'
  });
}
// Initialize Owl Carousel for a dynamic image carousel
$(document).ready(function() {
  $(".main-carousel").owlCarousel({
    direction: 'vertical',
    loop: false,
    items: 1,
    margin: 0,
    stagePadding: 0,
    autoplay: false,
    responsive: {
      0: {
        items: 1,
        nav: true,
        navText: ['&amp;lt;i class="fa fa-angle-left"&amp;gt;&amp;lt;/i&amp;gt;', '&amp;lt;i class="fa fa-angle-right"&amp;gt;&amp;lt;/i&amp;gt;'],
      },
      700: {
        items: 1,
      }
    }
  })
  // Enhance carousel with dynamic zoom functionality
  if (window.matchMedia('(min-width: 992px)').matches) {
    dotcount = 1;
    jQuery('.owl-dot').each(function() {
      jQuery(this).addClass('dotnumber' + dotcount);
      jQuery(this).attr('data-info', dotcount);
      dotcount = dotcount + 1;
    });
    slidecount = 1;
    jQuery('.owl-item').not('.cloned').each(function() {
      jQuery(this).addClass('slidenumber' + slidecount);
      slidecount = slidecount + 1;
    });
    jQuery('.owl-dot').each(function() {
      grab = jQuery(this).data('info');
      slidegrab = jQuery('.slidenumber' + grab + ' img').attr('src');
      if (typeof slidegrab === 'undefined') {
        jQuery(this).css("background-image", "url('assets/images/youtube.png')");
      } else {
        jQuery(this).css("background-image", "url(" + slidegrab + ")");
      }
    });
    amount = $('.owl-dot').length;
    gotowidth = 300 / amount;
    jQuery('.owl-dot').css("height", gotowidth + "%");
    // Update zoom when changing carousel items
    $('.main-carousel').on('translated.owl.carousel', function(event) {
      var currentItem = event.item.index + 1;
      $('.owl-item:nth-child(' + currentItem + ')').find('img').attr('id', 'zoom_05');
      $('#zoom_05').ezPlus({
        zoomType: 'inner',
        cursor: 'crosshair'
      });
    });
    // Detach zoom when changing carousel items
    $('.main-carousel').on('changed.owl.carousel', function(event) {
      var currentItem = event.item.index + 1;
      $(".zoomContainer").detach();
      $('.owl-item img').removeAttr('id');
    });
  }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub Repository:&lt;br&gt;
Explore the full integration on GitHub: &lt;a href="https://github.com/sammulla47/Owl-Carousel-Two-Elevated-Zoom-Fancybox-Integration"&gt;Owl Carousel Two Elevated Zoom Fancybox Integration.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With this integration, you'll take your website's image carousel to the next level, providing users with an engaging and interactive &lt;a href="https://sammulla47.github.io/Owl-Carousel-Two-Elevated-Zoom-Fancybox-Integration/"&gt;image-viewing&lt;/a&gt; experience.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Enhance Your Website's Image Carousel with Owl Carousel Two and Elevated Zoom</title>
      <dc:creator>Sameer Mulla</dc:creator>
      <pubDate>Sun, 28 May 2023 01:32:25 +0000</pubDate>
      <link>https://forem.com/sammulla47/enhance-your-websites-image-carousel-with-owl-carousel-two-and-elevated-zoom-44ga</link>
      <guid>https://forem.com/sammulla47/enhance-your-websites-image-carousel-with-owl-carousel-two-and-elevated-zoom-44ga</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GkxqlYLf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asgrehfp7befbzq66q46.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GkxqlYLf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asgrehfp7befbzq66q46.png" alt="Enhance Your Website's Image Carousel with Owl Carousel Two and Elevated Zoom" width="800" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Link to view the live demo: &lt;a href="https://sammulla47.github.io/owl-carousel-two-integration-with-elevated-zoom/"&gt;View Demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Link to raw code: &lt;a href="https://github.com/sammulla47/owl-carousel-two-integration-with-elevated-zoom/"&gt;Raw Code&lt;br&gt;
&lt;/a&gt;&lt;br&gt;
we'll explore how to integrate Owl Carousel Two with Elevated Zoom to enhance the image carousel functionality on your website. By combining these two powerful tools, you can create an engaging and interactive user experience for showcasing product images or any other type of visual content. Let's dive in!&lt;/p&gt;

&lt;p&gt;Understanding the HTML structure: We'll start by examining the provided HTML code and understanding its structure. It includes a container element for the carousel, a set of image items, and a zoom lens element.&lt;/p&gt;

&lt;p&gt;Applying CSS styling: To ensure a visually appealing carousel, we'll apply CSS styling to the carousel container, image items, and zoom lens. This includes setting the dimensions, positioning, and other visual properties to achieve the desired look and feel.&lt;/p&gt;

&lt;p&gt;Integrating Owl Carousel Two: Next, we'll integrate Owl Carousel Two into the HTML structure. This powerful carousel library allows us to create responsive and touch-friendly image carousels with ease. We'll initialize the carousel, set the number of items to display, and configure navigation options.&lt;/p&gt;

&lt;p&gt;Incorporating Elevated Zoom: Now comes the exciting part – integrating Elevated Zoom into the carousel. This advanced zoom library enables users to zoom in and inspect the images in detail. We'll add the necessary JavaScript code to enable zoom functionality and customize settings like the zoom window dimensions.&lt;/p&gt;

&lt;p&gt;Adding interactivity: To enhance the user experience, we'll incorporate interactivity into the carousel. This includes adding event listeners to the zoom lens for hover and click actions. Users can hover over the lens to see it change color, indicating interactivity, and click to trigger the zoom-in functionality.&lt;/p&gt;

&lt;p&gt;By following these steps, you can create a captivating image carousel that not only showcases your products or visual content but also allows users to explore the images up close with the zoom functionality.&lt;/p&gt;

&lt;p&gt;Feel free to access the live demo here to see the integration in action. If you're interested in studying or modifying the code, you can access the raw code here.&lt;/p&gt;

&lt;p&gt;In conclusion, integrating Owl Carousel Two with Elevated Zoom offers a powerful solution for enhancing image carousels on your website. Take advantage of the flexibility and customization options provided by these tools to create an immersive and visually appealing user experience. Happy coding and creating stunning image carousels!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>elevatedzoom</category>
      <category>owlcarousel</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How can Owl Carousel improve the user experience of an eCommerce website?</title>
      <dc:creator>Sameer Mulla</dc:creator>
      <pubDate>Wed, 03 May 2023 17:24:00 +0000</pubDate>
      <link>https://forem.com/sammulla47/how-can-owl-carousel-improve-the-user-experience-of-an-ecommerce-website-40e6</link>
      <guid>https://forem.com/sammulla47/how-can-owl-carousel-improve-the-user-experience-of-an-ecommerce-website-40e6</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FOnTqAk_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vbw9ladu443vi6sfeed.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FOnTqAk_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vbw9ladu443vi6sfeed.png" alt="Owl Carousel improve" width="800" height="219"&gt;&lt;/a&gt;&lt;br&gt;
Adding auto-play pause on hover functionality to an Owl Carousel can greatly enhance the user experience of your website or application. In this tutorial, we'll show you how to achieve this with some simple jQuery code.&lt;/p&gt;

&lt;p&gt;First, let's start by setting up an Owl Carousel with auto-play enabled. Here's an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$(document).ready(function(){
  $('.owl-carousel').owlCarousel({
    loop:true,
    margin: 10,
    autoplay: true,
    autoplayTimeout: 2000,
    responsive:{
        0:{
            items:1
        },
        600:{
            items:3
        },
        1000:{
            items:5
        }
    }
  });
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This sets up an Owl Carousel with auto-play enabled and some responsive breakpoints to adjust the number of items displayed based on screen size. However, this carousel doesn't pause auto-play when the user hovers over an item. To add this functionality, we need to add some additional jQuery code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$(document).ready(function(){
  var owl = $('.owl-carousel');
  owl.owlCarousel({
    loop:true,
    margin: 10,
    autoplay: true,
    autoplayTimeout: 2000,
    responsive:{
        0:{
            items:1
        },
        600:{
            items:3
        },
        1000:{
            items:5
        }
    }
  });

  // Pause autoplay on hover
  owl.on('mouseover', '.owl-item', function() {
    owl.trigger('stop.owl.autoplay');
  });

  // Resume autoplay when mouse leaves item
  owl.on('mouseout', '.owl-item', function() {
    owl.trigger('play.owl.autoplay');
  });
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, we've added event listeners for mouseover and mouseout on the .owl-item elements within the carousel. When the user hovers over an item, the stop.owl.autoplay event is triggered to pause auto-play. When the user leaves the item, the play.owl.autoplay event is triggered to resume auto-play.&lt;/p&gt;

&lt;p&gt;And that's it! With just a few lines of jQuery code, you can add auto-play pause on hover functionality to your Owl Carousel and greatly improve the user experience of your website or application.&lt;/p&gt;

&lt;p&gt;In summary, adding auto-play pause on hover functionality to an Owl Carousel is a simple yet effective way to enhance the user experience of your website or application. By following the steps outlined in this tutorial, you can easily add this functionality to your Owl Carousel and give your users a more seamless browsing experience.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>owlcarousel</category>
      <category>webdev</category>
      <category>ecommerce</category>
    </item>
  </channel>
</rss>
