Full-Screen Slideshow of Images and Videos In Pure JavaScript

Full-Screen Vanilla JS Slide Show for Videos and Photos is a responsive full-page slideshow that supports both photos and videos.

Preview and Quicklook on macOS are adorable, but their treatment of GIFs and QuickLook’s inability to duplicate videos bothered me, so I wrote this. You can see it in action in this YouTube video.

Features:

  • Displays any video or photo in a folder in the largest possible size without cropping
  • Mouse or keyboard navigation (left and right arrow backward and forward, space to switch between auto-advance)
  • The slideshow option displays a new picture every x second.
  • The slideshow waits for the photos and videos to load to be played before progressing
  • Stores the current position of the slideshow. The next time you upload the document, it starts where it left off the last time.

How to make use of it:

1. Load the required JavaScript and CSS files within the doc.

<link rel="stylesheet" href="base.css" />
<script src="slideshow.js"></script>

2. Create a slideshow container within the doc.

<div id="slideshow-container"></div>

3. Initialize the slideshow, specify the photographs & movies to be loaded, and outline the trail to the media folder.

let slideshow = {
    container: '#slideshow-container',
    media: [
      "1.jpg", 
      "2.mp4", 
      "3.jpg",
      // ...
    ],
    folder: 'media/',
}

4. Determine whether or not or to not allow Autoplay.

let slideshow = {
    container: '#slideshow-container',
    media: [
      "1.jpg", 
      "2.mp4", 
      "3.jpg",
      // ...
    ],
    folder: 'media/',
    autoplay: 'yes'
}

5. Specify the autoplay interval.

let slideshow = {
    container: '#slideshow-container',
    media: [
      "1.jpg", 
      "2.mp4", 
      "3.jpg",
      // ...
    ],
    folder: 'media/',
    speed: 2000
}

Fullpage Image & Video Slideshow, Slide full screen slide show Plugin/Github, automatic image slider in html css, simple pure javascript image slider, full screen video slider, full screen image slider


See Demo And Download

Official Website(codepo8): Click Here

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

Related Posts

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

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