Remove command
Completely remove something from the page after a delay.
Basic Usage (HTML)
data-jkit="[remove:delay=5000]"
Advanced Init (JavaScript)
$('#myelement').jKit('remove', { 'delay': '5000' });
Options
Option | Values | Default | Description |
---|---|---|---|
delay | Int (Milliseconds) | 0 | The delay before the element is being removed |
Events
Event | Description |
---|---|
complete | Triggered after the element is removed |
Examples
Basic example:
Completely remove a div from the DOM after 2 seconds:
Source:
<div data-jkit="[remove:delay=2000;speed=500;animation=fade]">Text ...</div>
Replacements
There are currently no replacements for this command.
[ Learn more about replacements ]
Discussions
Do you have questions or do you want to suggest new features? Than head over to our new community:
[ jKit Community ]