Object

Springy

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

Properties

type
string
(Required)

This behavior always has the type springy.

Discussion

When you apply the Springy behavior to a component, the component behaves as if it is held in place with a short spring, as shown in this video.

Example

{ "components": [ { "role": "figure", "behavior": { "type": "springy" }, "URL": "bundle://figure.jpg" } ]}

Relationships

Inherits From

See Also

Behaviors

About Component Behaviors

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

object Behavior

Properties shared by all the behaviors you can use to affect how components react 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.