Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="header d-flex flex-column align-items-center">
  <h1 class="display-6 mt-3 mb-0">lightGallery</h1>
  <p class="lead mt-2 mb-4">
    lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile
    <p class="lead mt-2 mb-4">
   With lightGallery, you can create both carousel slider and lightBox galleries. You can create inline gallery by passing the container element via container option. All the lightBox features are available in inline gallery as well. inline gallery can be converted to the lightBox gallery by clicking on the maximize icon on the toolbar

  <a class="btn mb-5 btn-outline-primary" href="" target="_blank">View on GitHub</a>
<div class="d-flex justify-content-center">
  <div id="inline-video-gallery-container" class="inline-gallery-container"></div>


                body {
  padding: 40px;
  background-image: linear-gradient(#e8f0ff 0%, white 52.08%);
  color: #0e3481;
  min-height: 100vh;

.header .lead {
  max-width: 620px;

.inline-gallery-container {
  width: 700px;
  height: 500px;
  position: relative;


                import lightGallery from "";

import lgZoom from "";
import lgThumbnail from "";

import lgVideo from ""
console.log(lgVideo, 'lgVideo')

const $lgInlineVideoContainer = document.getElementById(

if ($lgInlineVideoContainer) {
    const _inlineGallery = lightGallery($lgInlineVideoContainer, {
        container: $lgInlineVideoContainer,
        dynamic: true,
        thumbnail: true,
        swipeToClose: false,
        // addClass: 'lg-inline',
        mode: 'lg-scale-up',
        slideShowAutoplay: true,
        hash: false,
        pager: false,
        closable: false,
        showMaximizeIcon: true,
        rotate: false,
        download: false,
        slideDelay: 400,
        plugins: [lgThumbnail, lgVideo],
        // appendSubHtmlTo: '.lg-item',
        dynamicEl: [
      src: '',
      subHtml: `<h4>'Peck Pocketed' by Kevin Herron | Disney Favorite</h4>`,
      src: '',
      subHtml: `<h4>The Heart Of The Forest| Disney Favorite</h4>`,
      thumb: '',
      src: '',
      subHtml: `<h4>UE5 | In The Heart Of The Forest by Anastasia Gorban</h4>`,