HoverColor

altspace/utilities/behaviors. HoverColor

new HoverColor(configopt)

Changes the color of an object when cursor hovers over it.

Parameters:
Name Type Attributes Description
config Object <optional>

Optional parameters.

Properties
Name Type Attributes Default Description
event String <optional>
'cursorenter'

Specify the name of event which triggers the color change. Default is 'cursorenter' for a hover effect.

color String <optional>
'yellow'

Color specified as a hexadecimal or a CSS-style string, for example, "red", "#ff0000", or "rgb(250, 0, 0)".