This repository contains code for creating a simple video popup using HTML, CSS, and JavaScript. The video popup allows users to watch a video by clicking on a button and close it using a close icon.
- Clicking the "Watch now" button displays the video popup.
- The video popup includes controls for playing and pausing the video.
- Clicking the close icon hides the video popup.
To use this code in your project, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/dev-alihasan/video-popup.git
- Open the index.html file in your web browser to see the video popup in action.
- Customize the content, styles, and video source in the HTML, CSS, and JavaScript files to suit your needs.
- index.html: Contains the HTML structure for the video popup, including the video element, button, and close icon.
- design.css: Defines the styles for the video popup and its components.
- index.js: Includes the JavaScript code for controlling the behavior of the video popup.