-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(video-player): migrate caem-video-player features #12113
base: main
Are you sure you want to change the base?
feat(video-player): migrate caem-video-player features #12113
Conversation
✅ Deploy Preview for ibm-dotcom-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ibm-dotcom-web-components-react-wrap ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great work @m4olivei
I once used a bit of MutationObserver, nice to see IntersectionObserver in action through your code!
Related Ticket(s)
ADCMS-6664
Description
Migrates features from
caem-video-player
andcaem-video-player-container
mainlyintersection-mode
, which works for scrolling video into view, as well as multiple card in card with video in a carousel.Testing instructions
<c4d-carousel>
componentChangelog
New
intersection-mode
attribute for<c4d-video-player>
which will auto play/pause as the video scrolls into / out of the viewport