Micro Vanilla Javascript (ES6) Class Makes Easy Scrolling Events

TouchSwipe events are made easy, with LCweb vanilla javascript class to easily handle rollover events on-page elements. LC-Swiper is a small JavaScript (ES6) library designed to handle swipe-to-touch events on specific items.

  • It gives you a swipe delta in every direction
  • Supports multiple states for each item
  • Features a general destructive method (targeting a specific instance)

How to make use of it:

1. Import the JavaScript file lc-swiper.js into the document.

<script src="lc-swiper.min.js"></script>

2. Create an LC-Swiper on which you need to detect contact swipe.

<div id="targetContainer">
  <h2>Swipe here!</h2>
const swiper = new lc_swiper('#targetContainer');

3. Trigger a function each time you swipe on that aspect.

const swiper = new lc_swiper('#targetContainer', function(directions, $el){
      // do something
      // directions.top
      // directions.right
      // directions.bottom
      // directions.left

See Demo And Download

Official Website(LCweb-ita): Click Here

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

Related Posts


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…


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…


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…


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…


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 *