YaWK
24.1
Yet another WebKit
|
Add a pre-defined effect to any of your content elements. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
init () | |
Initialize: prepare proerties and load javascript. More... | |
printObject () | |
Print all object data. More... | |
Public Attributes | |
$contentAnimatorClass = 'slideUp' | |
$contentAnimatorScrollValue = '620' | |
$widget = '' | |
Add a pre-defined effect to any of your content elements.
Add modern fx and motion to any elements of your website.
The content animator widget lets you animate any kind of content. Simply add class="animate" to any html object in your DOM and the effect will be applied to the affected element. You can setup, which effect you wish to be drawn, as well as the scroll distance to the object. Be careful to use a not too big value, otherwise your users will think, that there is no more content before it got faded in. (or whichever effect you have activated)
Definition at line 18 of file contentAnimator.php.
YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
object | $db | Database Object |
Load all widget settings on object init.
Definition at line 36 of file contentAnimator.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator::init | ( | ) |
Initialize: prepare proerties and load javascript.
use this method to run the clock
Definition at line 61 of file contentAnimator.php.
YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator::printObject | ( | ) |
Print all object data.
(for development and testing purpose)
Definition at line 50 of file contentAnimator.php.
YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator::$contentAnimatorClass = 'slideUp' |
string | Which effect should be drawn on class="animated" At the time of writing this, following effects were available: slideUp, slideDown, slideLeft, slideRight, fade, fadeMedium, fadeSlow |
Definition at line 29 of file contentAnimator.php.
YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator::$contentAnimatorScrollValue = '620' |
string | Scroll distance to target which should be effected |
Definition at line 24 of file contentAnimator.php.
YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator::$widget = '' |
object | global widget object data |
Definition at line 21 of file contentAnimator.php.