jQuery SwipeToast Examples

Download This Plugin Back To jQueryScript

A lightweight jQuery plugin for creating customizable, swipe-to-dismiss toast notifications. Supports multiple types and positions.

Basic Toast Types

// Basic usage $.swipeToast({ message: 'Your message here', type: 'success', // 'default', 'success', 'error', 'warning', 'info' duration: 4000, // Duration in milliseconds position: 'bottom-center' });

Positions

Advanced Features

// Advanced usage $.swipeToast({ message: 'Advanced toast example', type: 'info', duration: 5000, position: 'bottom-right', progressBar: true, closeButton: true, rtl: false, className: 'custom-toast', onOpen: function () { console.log('Toast opened'); }, onClose: function () { console.log('Toast closed'); } });