A Javascript Library For Creating Slide Blocks | SlideBlock.js

slideBlock.js is a JavaScript library that uses CSS3 animations to create animated panels that slide from the edge of the screen.

Features of Pure CSS Background Image Slideshow / No JavaScript

How to make use of it:

1. Add the slideBlock.js to the net web page.

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

2. Attach the slideBlock to a sliding field as follows.

<div class="slide-block" id="example">
  ... Any Content Here ...
</div>
const slidingBox = new slideBlock({
      elementID: 'example'
})

3. Determine from which course the content will slide:

<div class="slide-block slide-block--left" id="example">
  ... Any Content Here ...
</div>

4. Determine whether or not to display a fullscreen overlay when activated.

const slidingBox = new slideBlock({
      overlay: true,
      slideBlockOverlayHTML: `<div class="slide-block slide-block--overlay" id="slideBlockOverlay""></div>`
})

5. Enable a component to slide in/out the sliding box.

const slidingBox = new slideBlock({
      elementsActivateID: [],
      elementsDisableID: []
})

6. Determine whether or not to display the sliding box on the web page load.

const slidingBox = new slideBlock({
      startMove: true
})

7. Determine the animation delay.

const slidingBox = new slideBlock({
      delayStart: 300
})

8. Slide in/out the box manually.

slidingBox.activateBlock()
slidingBox.disableBlock()

9. Create a modal window.

<div class="slide-block" id="slideBlockOverlay">
 <div class="slide-block slide-block--center" id="slideBlockModal">
   <div class="modal" id="modal">
      <div class="button" id="modalClose">
       <span class="button__text">Modal close</span>
     </div>
   </div>
 </div>
</div>
const slideBlockModal = new SlideBlock({
      elementID: 'slideBlockModal',
      overlay: true,
      elementsActivateID: ['modalOpen'],
      elementsDisableID: ['modalClose']
})

Versatile Sliding Box, SlideBlock JS Plugin/Github


See Demo And Download

Official Website(leobrn): Click Here

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

Related Posts

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Data-Table-Generator-Tabulator

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…

alert-confirm-prompt-attention-js

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…

Bootstrap-4-Sidebar-Menu-Responsive-Template

Bootstrap 4 Sidebar Menu Responsive Template | MDB

Bootstrap Side Navbar – Responsive sidebar template based on the Bootstrap 4 framework. An easy-to-use, totally responsive, Google Material Design impressed aspect navigation for modern web app…

Bootstrap-4-Toast-Notification-Plugin

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…

Audio-Visualizations-Wave

How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…

Leave a Reply

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