This project demonstrates a simple way to dynamically create and display video cards on a webpage. The createCard
function generates video card elements and appends them to a container. Users can interact with the thumbnail to play a video.
- Dynamic Card Creation: Automatically generate video cards with customizable content.
- Interactive Thumbnails: Click on the thumbnail to play a video.
- Modern Design: Includes a glassmorphism effect and glowing border.
demo.mp4
Ensure your HTML includes a container element and a button to trigger card creation.
The createCard
function generates and appends a video card to the container. An event listener on the button will trigger this function with sample data.
The included CSS styles the card with a glassmorphism effect and a glowing border.
createCard
Function: Generates and appends a video card to the.container
element based on provided parameters.- Button Click Event: Triggers the creation of a video card with sample data.
- Video Playback: Clicking the thumbnail will display a video player.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.