π Description
We need a popup modal that plays a video trailer when triggered.
This project is perfect for movie previews, product demos, or any interactive video content, and helps practice modals, video control, and event handling in JavaScript.
π― Requirements
- Open the popup modal when the user clicks a button or image
- Play a video inside the modal
- Include a close button to stop the video and close the popup
- Ensure the design is responsive for all screen sizes
π‘ Concepts to Demonstrate
- Creating a modal and toggling its visibility
- Embedding and controlling HTML5 video (play, pause)
- Handling events for open/close actions
- Using CSS overlays, transitions, and animations for a smooth experience
π Bonus Challenge
- Add autoplay when the modal opens
- Automatically pause or stop the video when the modal closes
- Include fade-in/out animations for the modal
π¦ Deliverables
- A working example using HTML, CSS, and JavaScript
- Include a short README or inline comments explaining how your code works
- Submit your solution as:
- A pull request in the
examples/ folder, or
- A CodePen, JSFiddle, or GitHub Gist link
π Description
We need a popup modal that plays a video trailer when triggered.
This project is perfect for movie previews, product demos, or any interactive video content, and helps practice modals, video control, and event handling in JavaScript.
π― Requirements
π‘ Concepts to Demonstrate
π Bonus Challenge
π¦ Deliverables
examples/folder, or