Hide command
Hide something at a specific time after pageload, and animated if needed.
Basic Usage (HTML)
data-jkit="[hide:delay=5000;speed=slow]"
Advanced Init (JavaScript)
$('#myelement').jKit('hide', { 'delay': '5000', 'speed': 'slow' });
Options
Option | Values | Default | Description |
---|---|---|---|
delay | Int (Milliseconds) | 0 | The delay before the element is being hidden |
speed | Int or “fast”, “slow” (Milliseconds) | 500 | The duration of the animation in milliseconds, bigger = slower. |
animation | “fade”, “slide” or “none” | fade | The type of animation used for the transition |
easing | String (“linear” or easing plugin option) | linear | The easing behavior of the animation |
Events
Event | Description |
---|---|
complete | Triggered whenever the animation is finished |
Examples
Basic example:
Hide a div after 2 seconds:
Source:
<div data-jkit="[hide: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 ]