See the Pen lightgallery.js by Sachin choolur on CodePen.
And if you need the source code head over to the GitHub repo and grab a copy for yourself.
You can see a full demo on the demos page or check out the pen below. If you’d prefer this as a jQuery plugin there is a lightgallery.js plugin ported for jQuery users. But it plays nice with big libraries such as jQuery or Bootstrap as well. This library is free of all dependencies and it runs on pure JavaScript. This truly is the best lightbox gallery plugin offering the best possible user experience. You can even embed iframes or videos from sites such as YouTube or Vimeo. Its also available for some, but not all, clip art. It supports all modern browsers including IE 10 and above. lightGallery is built with the most modern technologies available to achieve the best performance and quality. Available for React.js, Vue.js, Angular, and TypeScript. The Set Transparent Color option is available for bitmap pictures that dont already have transparency information. A lightweight, modular, JavaScript image and video lightbox gallery plugin. In the picture, click the color you want to make transparent. Click Picture Tools > Recolor > Set Transparent Color. It’s the perfect choice for a designer or photographer who wants a brilliant method to display their portfolio on their site. Select the picture that you want to create transparent areas in. Oh, and did I mention it’s completely mobile-friendly? You can swipe photos through the gallery with your finger or even with a mouse. But you’ll also find info for custom data attributes, Sass variables, and even a plugin API to build modules onto lightgallery. It has details for options and callback methods. In fact, I’m blown away by how much detail went into the documentation. You can pick and choose which of these buttons you want to display by editing the options when you call the plugin.
In the upper-right corner, you’ll see a series of buttons for extended features. With lightgallery.js, all focus goes onto the slideshow and the first visible image.Īt the bottom of each slide, you can find a small description with links or whatever text you want. I vastly prefer this plugin over other slideshows that only take up a portion of the screen. Multiple classes are separated via space.10 Best Photo Gallery & Slideshow WordPress Pluginsįor any portfolio or image-oriented website running on WordPress, it is imperative to have a photo gallery and. A lightweight, modular, JavaScript image and video lightbox gallery plugin. Show_description_as_inline_caption: true | falseĬustom_inline_caption_css_class: 'my-caption-class'Īdds the description as caption in lightgallery dialog.Īdds the description as inline caption below the image.Ĭustom CSS classes which are applied to the inline caption paragraph.
Show_description_in_lightgallery: true | false Change extension settings in mkdocs.ymlĪll settings of the extension are optional and can be omitted. Modify the mkdocs.yml file to add the following settings # Documentation and themeĥ. getElementsB圜lassName ( "lightgallery" ) for ( var i = 0 i Ĥ. Create a theme/main.hml file and add the following code to the file Go to lightgallery.js GitHub or JSDELIVR to download the following files to the theme sub-folders as listed below Create a theme folder will the following structure in your Mkdocs folder theme/Ģ.
markdown ( '!(/img/pic1.png)', extensions = )) Install $ pip install lightgalleryġ. To test the extension: import markdown from lightgallery import LightGalleryExtension print ( markdown. The extension is made to work with lightgallery.js a full featured JavaScript lightgallery/lightbox with no dependencies. Will only wrap images by adding "!" right after the opening "(/img/pic1.png) Markdown extension to wrap images in a lightbox.