{"id":27504,"date":"2023-05-23T11:35:27","date_gmt":"2023-05-23T16:35:27","guid":{"rendered":"https:\/\/wpstackable.com\/?p=27504"},"modified":"2023-05-23T11:35:30","modified_gmt":"2023-05-23T16:35:30","slug":"introducing-stackable-lightbox","status":"publish","type":"post","link":"https:\/\/wpstackable.com\/blog\/introducing-stackable-lightbox\/","title":{"rendered":"Introducing: Stackable Lightbox"},"content":{"rendered":"\n<p data-block-type=\"core\">The Stackable team is excited to introduce our new feature, the Lightbox. This is one of the new features included in our latest release, Stackable v3.8.0.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p data-block-type=\"core\">A Lightbox is a window overlay that is layered on top of a webpage, displaying media in full view and partially blocking the rest of the content on a page. When this window overlay appears, the background is dimmed and disabled, preventing site visitors from interacting with other content on the website.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\" data-block-type=\"core\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" data-block-type=\"core\">Understanding Lightbox<\/h2>\n\n\n\n<p data-block-type=\"core\">Stackable\u2019s Lightbox is a lightweight JavaScript module used to display images, videos, and other web content using modal dialogs. When a user clicks on a specific element, the Lightbox feature dims the rest of the webpage and brings the selected content into focus in an overlay or a &#8216;box of light&#8217;, hence the term Lightbox.<\/p>\n\n\n\n<p data-block-type=\"core\">Lightbox is a powerful tool in web design that can significantly enhance the user experience on a website. Here&#8217;s a look at the benefits of using Lightbox in web design:<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-medium-font-size\" data-block-type=\"core\">Benefits of Using Lightboxes for your Content<\/h3>\n\n\n\n<ol class=\"wp-block-list\" data-block-type=\"core\">\n<li data-block-type=\"core\"><strong>Enhanced User Experience<\/strong>: The primary benefit of using Lightbox is the improvement it brings to the user experience. By overlaying zoomable high resolution images, videos, or forms over the current page, users can view content without being redirected to a new page. This makes the user journey smoother and more enjoyable, and helps keep users engaged on your website.<\/li>\n\n\n\n<li data-block-type=\"core\"><strong>Focus on Content<\/strong>: Lightbox dims the rest of the webpage and highlights the selected content. This brings the user&#8217;s full attention to the content in the Lightbox, making it perfect for showcasing important images or videos. It allows web designers to guide the user&#8217;s attention where they want it to go.<\/li>\n\n\n\n<li data-block-type=\"core\"><strong>Space Saving<\/strong>: Lightbox allows web designers to save space on the page. Instead of having to allocate large amounts of space to display images or videos in their full size, designers can use thumbnails or smaller versions, with the Lightbox used to display the full-size version when the user clicks on the content. This is especially useful for image galleries or product showcases.<\/li>\n\n\n\n<li data-block-type=\"core\"><strong>Versatility<\/strong>: Lightbox isn&#8217;t just for images and videos. It can also be used to different types of web content.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\" data-block-type=\"core\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" data-block-type=\"core\">Lightbox in Stackable<\/h2>\n\n\n\n<p data-block-type=\"core\">With Stackable\u2019s Lightbox, now users won\u2019t have to write any code to activate it. This was developed with a lot of considerations in mind. First, it is responsive. It works great in mobile or tablet devices, you can swipe left or right, and pinch to zoom in or out.<\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\" data-block-type=\"core\"><video autoplay controls loop muted src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/Untitled-design-3.mp4\"><\/video><\/figure>\n\n\n\n<p data-block-type=\"core\">Second, users can open several types of media in a lightbox, such as locally hosted images or video files, YouTube URLs, Vimeo URLs. You could also open web pages in Stackable\u2019s lightbox, given that they allow embedding.<\/p>\n\n\n\n<p data-block-type=\"core\">Third, when media is grouped together (by placing lightboxed blocks one after the other, or when they are inside columns), they are displayed as a lightbox gallery, with left and right arrows that can be used to navigate. It doesn\u2019t matter if it\u2019s all images, all videos, or all embeds\u2014as long as they are adjacent to each other, it will open up as a lightbox gallery.<\/p>\n\n\n\n<figure class=\"wp-block-video\" data-block-type=\"core\"><video autoplay controls loop muted src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_navigate.mp4\"><\/video><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\" data-block-type=\"core\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" data-block-type=\"core\">How to Create a Lightbox with Stackable<\/h2>\n\n\n\n<p data-block-type=\"core\">To create a lightbox, you must simply turn on Open Image in Lightbox toggle. It looks like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\" data-block-type=\"core\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_image_lightbox.png\" alt=\"\" class=\"wp-image-27514\" width=\"320\" height=\"50\" srcset=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_image_lightbox.png 640w, https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_image_lightbox-300x47.png 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure><\/div>\n\n\n<p data-block-type=\"core\">You can find this toggle in various places. Like in the Image panel of the Image block (Block > Style Tab). Simply select the Open Image in Lightbox toggle and that will enable the feature on the image.<\/p>\n\n\n\n<figure class=\"wp-block-video\" data-block-type=\"core\"><video autoplay controls loop muted src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_image_lightbox.mp4\"><\/video><\/figure>\n\n\n\n<p data-block-type=\"core\">You may also find the Open Image in Lightbox toggle on blocks where there are Link controls. There are various blocks that have Link controls such as Image block, Icon block, Call to Action, Card, Inner Column, Notification block, Pricing Box block, Team Member block, and Testimonial block.<\/p>\n\n\n\n<p data-block-type=\"core\">Because of this option, you can use the Lightbox toggle to embed a Youtube Video to an Image block and open it up in a lightbox just like this:<\/p>\n\n\n\n<figure class=\"wp-block-video\" data-block-type=\"core\"><video autoplay controls loop muted src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_embed_youtube-1.mp4\"><\/video><\/figure>\n\n\n\n<p data-block-type=\"core\">Or you may also use a locally hosted file and embed it into an image, icon, button, inner column, or whichever! In the video below, we used the URLs of our locally hosted files and added it as a link to each Inner Column block.<\/p>\n\n\n\n<figure class=\"wp-block-video\" data-block-type=\"core\"><video autoplay controls loop muted src=\"https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/stackable_locally_hosted.mp4\"><\/video><\/figure>\n\n\n\n<p data-block-type=\"core\">With these options for this brand new feature, there are endless possibilities. With effortless setup, Stackable\u2019s Lightbox makes it quick and easy to highlight your media and enhance user interaction.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\" data-block-type=\"core\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" data-block-type=\"core\">Conclusion<\/h2>\n\n\n\n<p data-block-type=\"core\">Taking advantage of the Lightbox effect into your website design can significantly enhance the visual experience and user engagement on your site. With Stackable\u2019s new Lightbox feature, you have a tool that brings your content into focus, creating an immersive and distraction-free viewing experience for your website visitors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Stackable team is excited to introduce our new feature, the Lightbox. This is one of the new features included in our latest release, Stackable v3.8.0.<\/p>\n","protected":false},"author":18,"featured_media":27505,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[19,3],"tags":[],"class_list":{"0":"post-27504","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"hentry","7":"category-about-stackable","8":"category-updates"},"featured_image_urls_v2":{"full":["https:\/\/wpstackable.com\/wp-content\/uploads\/2023\/05\/Introducing_-Stackable-Lightbox.jpg",2400,1248,false]},"post_excerpt_stackable_v2":"<p>The Stackable team is excited to introduce our new feature, the Lightbox. This is one of the new features included in our latest release, Stackable v3.8.0. A Lightbox is a window overlay that is layered on top of a webpage, displaying media in full view and partially blocking the rest of the content on a page. When this window overlay appears, the background is dimmed and disabled, preventing site visitors from interacting with other content on the website. Understanding Lightbox Stackable\u2019s Lightbox is a lightweight JavaScript module used to display images, videos, and other web content using modal dialogs. When&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/wpstackable.com\/blog\/category\/about-stackable\/\" rel=\"category tag\">About Stackable<\/a>, <a href=\"https:\/\/wpstackable.com\/blog\/category\/updates\/\" rel=\"category tag\">Updates<\/a>","author_info_v2":{"name":"Alexandra Yap","url":"https:\/\/wpstackable.com\/blog\/author\/alex\/"},"comments_num_v2":"2 comments","acf":[],"modified_by":"Alexandra Yap","_links":{"self":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts\/27504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/comments?post=27504"}],"version-history":[{"count":4,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts\/27504\/revisions"}],"predecessor-version":[{"id":27519,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/posts\/27504\/revisions\/27519"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/media\/27505"}],"wp:attachment":[{"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/media?parent=27504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/categories?post=27504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpstackable.com\/wp-json\/wp\/v2\/tags?post=27504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}