tailwind+vue在线视频关键帧可视化提取图片重绘合并成新视频模拟ui交互代码

代码语言:html

所属分类:布局界面

代码描述:tailwind+vue在线视频关键帧可视化提取图片重绘合并成新视频模拟ui交互代码

代码标签: tailwind vue 在线 视频 关键帧 可视化 提取 图片 重绘 合并 模拟 ui 交互 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频关键帧流式编辑器</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.16.js"></script>
    <!-- Vue 3 -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.global.3.5.18.js"></script>
    <!-- 引入一些图标 -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/remixicon.3.5.0.css">
    
    <style>
        body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; background-color: #1a1a1a; color: #e5e5e5; }
        
        /* 隐藏滚动条但允许滚动 */
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        /* 画布网格背景 */
        .canvas-bg {
            background-image: radial-gradient(#404040 1px, transparent 1px);
            background-size: 20px 20px;
        }

        .node-card {
            transition: box-shadow 0.2s;
        }
        .node-card:hover {
            box-shadow: 0 0 0 2px #3b82f6;
        }
        .node-selected {
            box-shadow: 0 0 0 2px #10b981 !important; /* Green for selection */
        }

        /* 连线层需要在节点层下面 */
        #svg-layer {
            pointer-events: none;
            z-index: 0;
        }
        #nodes-layer {
            z-index: 10;
        }
    </style>
</head>
<body>

<div id="app" class="flex h-full w-full">

    <!-- 左侧:控制面板与视频源 -->
    <div class="w-80 flex-shrink-0 bg-gray-900 border-r border-gray-700 flex flex-col z-20 shadow-xl">
        <div class="p-4 border-b border-gray-800">
            <h1 class="text-xl font-bold bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">
                <i class="ri-movie-line mr-2"></i>视频流工作台
            </h1>
        </div>

        <!-- 步骤1: 视频加载 -->
        <div class="p-4 space-y-4 overflow-y-auto flex-1">
            <div class="space-y-2">
                <label class="block text-sm text-gray-400">1. 选择本地视频</label>
                <input type="file" @change="handleVideoUpload" accept="video/*" 
                       class="block w-full text-sm text-slate-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100 transition"/>
            &.........完整代码请登录后点击上方下载按钮下载查看

网友评论0