Styler documentation

Styler sets the CSS class on an element when a link is activated.

Example

Style the paragraph

The element to style
<p><a class="styler style-hi targetEl-stylerbox" href="#">Style the paragraph</a></p>
<div id="stylerbox">The element to style</div>

Settings

Valid elements

a elements (links)

Classname

styler

Attributes

None

CSS parameters (what's this?)

targetEl (required)
Must be set to the id of the element you wish to style.
style (required)
Must be set to the CSS class you wish to apply to the target element.
delay (optional, default = 0)
Sets the number of seconds delay before the target element is styled