HoverScale

altspace/utilities/behaviors. HoverScale

new HoverScale(configopt)

Changes the scale of an object when the cursor hovers over it, and restores the original scale when the cursor is no longer hovering over the object.

Parameters:
Name Type Attributes Description
config Object <optional>

Optional parameters.

Properties
Name Type Attributes Default Description
scale Number <optional>
1.15

A scaling factor that will be applied to the object's initial scale when the cursor hovers over it.

duration Number <optional>
75

Duration the scaling effect is intended to take to complete, in milliseconds.

revertOnDispose Boolean <optional>
true

Specifies whether the object's original scale should be restored when the behavior has been destroyed.

Extends

Members

type :string

The string name of this class. This is used for THREE.Object3D#getBehaviorByType.

Inherited From:

Methods