Apple News API PHP Client

Motion
in package
implements BehaviorInterface

FinalYes

Motion behavior for device motion-based parallax.

The motion behavior creates a parallax effect based on device motion, making components appear to float in 3D space as the user tilts their device. This is similar to the iOS home screen parallax effect.

Tags
see
https://developer.apple.com/documentation/apple_news/motion

Table of Contents

Interfaces

BehaviorInterface
Interface for all ANF component behaviors.

Methods

getType()  : string
Get the behavior type identifier.
jsonSerialize()  : array{type: string}
{@inheritdoc}

Methods

getType()

Get the behavior type identifier.

public getType() : string
Return values
string

The behavior type (e.g., 'parallax', 'springy').

jsonSerialize()

{@inheritdoc}

public jsonSerialize() : array{type: string}
Return values
array{type: string}

        
On this page

Search results