javascript - 如何从系统上传和覆盖animation.html文件并以HTML或ANGULAR覆盖视频
问题描述
嘿,我正在尝试构建一个应用程序,该应用程序具有允许用户从他的系统上传预先存在的 .HTML 文件的功能,其中包含一个简单的动画初始化
我想获取该文件并将 .HTML 文件中包含的动画覆盖在我的视频上并将其显示给用户。
有可能吗,如果可以,请帮助我。
body {
background: #;
}
#fullScreenBox {
height: 500px;
width: 50%;
background: #;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
#hiddenBox {
width: 50%;
height: 500px;
background: #;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
overflow: hidden;
}
#title {
width: 100%;
height: 150px;
background: #;
/*U can also use #*/
position: absolute;
top: 200px;
font-family: arial;
font-size: 50px;
color: white;
text-align: center;
opacity: 0;
}
#subtitle {
width: 100%;
height: 50px;
background: #;
/*U can also use #*/
position: absolute;
top: 300px;
font-family: arial;
font-size: 50px;
color: red;
text-align: center;
opacity: 0;
}
#line01 {
width: 25%;
height: 4px;
background: white;
/*U can also use #*/
position: absolute;
top: 50px;
bottom: 0;
left: 0;
right: 0;
margin: auto;
color: white;
opacity: 0;
}
#overlay {
position: absolute;
color: #FFF;
text-align: center;
font-size: 20px;
padding: 10px 0;
width: 50%;
height: 500px;
background: #;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
#v {
height: 500px;
width: 100%;
}
<body data-control="10:30">
<div id="fullScreenBox">
<div id="overlay" class="">
<div id="title" class="webvfx" data-animate='{
start: 0,
end: 1,
ease: "linearTween",
0%: {opacity:0; left:-1000px;},
20%: {opacity: 1; left:0px;},
90%: {opacity:1; left:0px;},
100%: {opacity: 0; left:1000px;}
}'>
LONDON
</div>
<div id="line01" class="webvfx" data-animate='{
start: 0,
end: 1,
ease: "linearTween",
0%: {opacity:1; width: 0%;},
20%: {opacity:1; width: 25%;},
80%: {opacity:1; width: 25%;},
100%: {opacity:1; width: 0%;}
}'>
</div>
<div id="subtitle" class="webvfx" data-animate='{
start: 0,
end: 1,
ease: "linearTween",
0%: {opacity:0; left:1000px;},
20%: {opacity: 1; left:0px;},
90%: {opacity:1; left:0px;},
100%: {opacity: 0; left:-1000px;}
}'>
City of Dreams!
</div>
</div>
</body>
这是我的 HTML 文件,其中包含一个简单的动画,例如在用户系统中
在我的应用程序中,当用户上传此文件时,我想在他上传时将此文件中包含的动画覆盖在视频上,无论如何,谢谢
解决方案
推荐阅读
- amp-html - nodejs 中的 AMP 工具箱优化器问题
- .net - 在 Linux 上的 VS Code 中设置 F# 调试
- scala - Spark Scala:将 Map 转换为 Row 对象
- python - 我究竟做错了什么?使用 Tkinter 和随机的 Python 密码生成器
- linux - _raw_spin_lock_irqsave 的长 IRQ 关闭
- c# - 在 WPF C# 应用程序的 Window 类之外使用 .base 属性的 OnClosed() 方法
- mysql - 我为给定的问题陈述编写的查询是否正确?
- php - 如何以序列化形式laravel将数据存储在数组中?
- botframework - 捕获到直接 WebSocket 端点的失败连接
- php - 如何更改 WooCommerce 产品的产品标签列表中的排序