组件 视频播放器 视频播放器组件

视频播放器组件

一个使用Tailwind CSS样式设计的响应式视频播放器组件,专注于微交互和深色主题支持。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 rounded-lg overflow-hidden shadow-lg transition-transform hover:scale-105 duration-200" role="video" aria-label="Video Player">
    <div class="relative">
        <img src="https://picsum.photos/800/450?random=1" alt="Video thumbnail" class="w-full h-48 object-cover">
        <button class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-50 text-white text-3xl rounded-full opacity-0 transition-opacity duration-200 hover:opacity-100">
            ▶
        </button>
    </div>
    <div class="p-4">
        <div class="flex items-center mb-2">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-10 h-10 rounded-full mr-2">
            <h2 class="text-lg font-semibold dark:text-white">Video Title</h2>
        </div>
        <p class="text-sm text-gray-700 dark:text-gray-300">Description of the video goes here. It should be engaging and concise.</p>
    </div>
</div>

相关组件

视频播放器组件

一个野兽派风格的视频播放器组件,具有高对比度和不寻常的布局,采用响应式设计并支持使用Tailwind CSS的深色主题。

打开

视频播放器组件

具有深色模式的 Material Design 视频播放器组件

打开

视频播放器

一个采用材料设计风格的视频播放器组件,具有响应式效果和黑暗主题支持,使用 Tailwind CSS。

打开