• 개요
@angular/animations

NoopAnimationPlayer

클래스
사용 중단 권고v20.2부터

An empty programmatic controller for reusable animations. Used internally when animations are disabled, to avoid checking for the null case when an animation player is expected.

사용 중단을 권고합니다.

Use animate.enter or animate.leave instead. Intent to remove in v23

API

    
      class NoopAnimationPlayer implements AnimationPlayer {}
    
    

constructor

NoopAnimationPlayer
@paramdurationnumber
@paramdelaynumber

totalTime

number

onStart

void
@paramfn() => void
@returnsvoid

onDone

void
@paramfn() => void
@returnsvoid

onDestroy

void
@paramfn() => void
@returnsvoid

hasStarted

boolean
@returnsboolean

init

void
@returnsvoid

play

void
@returnsvoid

pause

void
@returnsvoid

restart

void
@returnsvoid

finish

void
@returnsvoid

destroy

void
@returnsvoid

reset

void
@returnsvoid

setPosition

void
@parampositionnumber
@returnsvoid

getPosition

number
@returnsnumber
상세 내용으로 이동