feat(cover-block): add parallax effect support to video backgrounds #74289
+60
−39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Closes #52585
This PR adds "Fixed background" (parallax effect) support for video backgrounds in the Cover block, similar to the existing functionality available for image backgrounds.
Why?
Currently, the Cover block allows setting an image background to be "Fixed" - so the image remains in place while the content scrolls over the top (parallax effect). However, this option was not available for video backgrounds.
Users have requested the ability to use the same parallax/fixed effect with video backgrounds to create more engaging visual experiences.
How?
background-attachment: fixedlike images do, the parallax effect for videos is achieved using:Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before(No support for parallax):-
Screen.Recording.2025-12-31.at.5.15.54.PM.mov
After:-
Screen.Recording.2025-12-31.at.5.16.26.PM.mov