Apple News API PHP Client

BackgroundMotion
in package
implements BehaviorInterface

FinalYes

BackgroundMotion behavior for background motion effects.

The background_motion behavior applies motion effects to the background of a component, creating depth as the user tilts their device.

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

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