jQuery swipeleft Event
Swipe over a <p> element in the left direction to hide it:
Try it yourself »
Definition and Usage
The swipeleft event is triggered when the user press down and swipes over an element in the left direction (by more than 30px horizontally and less than 75px vertically).
- swipe - triggered when the user swipes over an element horizontally (left and right direction)
- swiperight - triggered when the user swipes over an element in the right direction
|function(event)||Required. Specifies the function to run when the swipeleft event occurs.
The function has an optional event object, which can contain any jQuery event properties (e.g. event.target, event.type, etc.) See jQuery Events Reference for more information.
Try it Yourself - Examples
Using the event.target property to return which DOM element that triggered the swipeleft event.
Thank You For Helping Us!
Your message has been sent to W3Schools.