MCPcopy Create free account
hub / github.com/ampproject/amphtml / toggleAnimation

Method toggleAnimation

src/service/video-manager-impl.js:848–852  ·  view source on GitHub ↗

@param {boolean} isPlaying

(isPlaying)

Source from the content-addressed store, hash-verified

846
847 /** @param {boolean} isPlaying */
848 function toggleAnimation(isPlaying) {
849 video.mutateElementSkipRemeasure(() =>
850 animation.classList.toggle('amp-video-eq-play', isPlaying)
851 );
852 }
853
854 const unlisteners = [
855 listen(element, VideoEvents_Enum.PAUSE, () => toggleAnimation(false)),

Callers

nothing calls this directly

Calls 2

toggleMethod · 0.45

Tested by

no test coverage detected