Apple News API PHP Client

AppearAnimation
in package
implements AnimationInterface

FinalYes

Appear animation for components.

The appear animation causes a component to appear instantly when it enters the viewport. This is the simplest animation type.

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

Table of Contents

Interfaces

AnimationInterface
Interface for all ANF component animations.

Properties

$userControllable  : bool|null
Whether the animation is controllable by user scroll position.

Methods

getType()  : string
Get the animation type identifier.
jsonSerialize()  : array<string, mixed>
{@inheritdoc}
setUserControllable()  : $this
Set whether the animation is user controllable.

Properties

$userControllable

Whether the animation is controllable by user scroll position.

private bool|null $userControllable = null

Methods

getType()

Get the animation type identifier.

public getType() : string
Return values
string —

The animation type (e.g., 'fade_in', 'move_in').

jsonSerialize()

{@inheritdoc}

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>

setUserControllable()

Set whether the animation is user controllable.

public setUserControllable(bool $userControllable) : $this

When true, the animation progress is tied to scroll position, allowing users to scrub back and forth through the animation.

Parameters
$userControllable : bool

Whether user can control the animation.

Return values
$this

        
On this page

Search results