Object

Behavior

Properties shared by all the behaviors you can use to affect how components react to device motion and scrolling.

Properties

type
string
(Required)

The type of behavior, for example, parallax for a Parallax behavior.

Version 1.0

Discussion

A behavior defines the physics of a component and its context. The effect of a component behavior is persistent and occurs every time the user views the article. Compare that with an animation which happens just once each time a user views the component in your article.

This object can be used in Component.

See Also

Behaviors

About Component Behaviors

Learn how to affect components’ reactions to device motion and scrolling.

object BackgroundMotion

The behavior whereby the background of a component moves in the opposite direction from the motion of the device.

object BackgroundParallax

The behavior whereby the background of a component moves slightly slower than the user’s scroll speed.

object Motion

The behavior whereby a component reacts to the motion of the user’s device.

object Parallax

The behavior whereby a component moves at a speed different from the scroll speed.

object Springy

The behavior whereby a component acts as if it is on a short spring.