enfrdeitptrues
Advertising

OnPositonAdditionalClass

{OnPositonAdditionalClass selector="selector" class="class" position="number" compare="logic comparator" /}

Adding / removing a additonal class to the given selector if the position is reached.

Params for OnPositonAdditionalClass:

selector: The selector to add / remove the additional class.

class: The class to be add.

positon: vertical position for the changing class

compare: the locic comperator >= (greater than) <= (lower than), other java script logic comperator are possible but not tested.

How to use it:

{OnPositonAdditionalClass selector="#mytest" class="red" position="20" compare=">=" /}
{OnPositonAdditionalClass selector="#mytest2" class="red" position="20" compare="<=" /}

Example:

This line will be in red color if the scroll position is reached. logic comperator (position >= 20)

This line will be in red color if the scroll position is reached. logic comperator (position <= 20)


Available for:

Advertising

© 2010 - 2017 FINWICK® UG

We have 45 guests and no members online

enfrdeitptrues