SOW : Core Plugins

SOW = Step Of Web (Smarty author).
SOW plugins are part of Smarty Core, written from scratch!

SOW : Timer Autohide

Hide element when the timer hit 00:00


/* 
	:: Plugin File
	src/js/sow.core/sow.timer_autohide.js

	:: Plugin Init
*/	$.SOW.core.timer_autohide.init('.timer-autohide');

									

Examples

This container will autohide in 15 seconds.

<div class="timer-autohide" data-timer-autohide="15000">
	This container will autohide in 15 seconds.
</div>
											

Used together with SOW : Timer Countdown
This container will autohide in:

<div class="timer-autohide" data-timer-autohide="10000">
	This container will autohide in: <span class="hide timer-countdown" data-timer-countdown-from="10000"></span>
</div>