Skip to content

Write HTML. Render video. Built for agents.

fix(player): pause the hidden loader sheen (#3673)

Miguel Ángel4a72a98a495c
diff --git a/packages/player/src/styles.ts b/packages/player/src/styles.ts
index 5e9e712174..7ac23afa81 100644
--- a/packages/player/src/styles.ts
+++ b/packages/player/src/styles.ts
@@ -124,6 +124,10 @@ export const PLAYER_STYLES = /* css */ `
animation: hfp-shader-loader-sheen 1.9s linear infinite;
}
+ .hfp-shader-loader:not(.hfp-visible):not(.hfp-hiding) .hfp-shader-loader-title-text {
+ animation-play-state: paused;
+ }
+
.hfp-shader-loader-detail {
width: 100%;
height: 26px;