Skip to main content

Hover

Show and hide the element when the cursor is over it.

AttributeTypeDefaultDescription
onSTRINGbothAction to perform when the cursor is in the area. Either show or hide
durationINTEGER0Duration of the appear/fade transition in milliseconds (ms)
fromINTEGER0Transparency when the cursor is not over the element from 0 to 100
toINTEGER100Transparency when the cursor is over the element from 0 to 100
toleranceINTEGER0Expands the area on each side (in pixels)
Example
<behavior name="fx4" fx="hover" />