返回提示词

Motion Prompt #168|背景视频 · Background video

首屏背景中播放视频

发布于 更新于 浏览 0

部分附加信息、来源说明或示例仍显示原文。

来源:import:liubai_public_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0410/original.md · 授权:MIT License Copyright (c) 2026 Shohei Ohtaki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

使用示例

提示词正文

请使用“Background video”(背景動画),它是“Landing page & web effects, part 2”中的一个名称。
Motion Prompt #168

定义:首屏区块后方播放视频。
示例展示:首屏背景中的云和波浪持续运动,前方标题与按钮保持静止。
规格:
- 视口511×168,天空、云、山和海的背景画面填满首屏,上层为静止的28 px白色标题和按钮。背景每4.7 s循环一次,在9.4 s包周期内两次。
- 云:远层每170 px重复,每4.7 s向右移动170 px,约36 px/s;近层每340 px重复,每4.7 s移动340 px,约72 px/s。山保持静止。
- 海:三条波浪分别位于y = 118、130、146,振幅2.5–3 px,波长90、60、120 px;只有中间一条反向,每4.7 s移动两个波长,其余两条向右移动一个波长。
- 为可读性,在背景上覆盖12%深蓝层;左侧300 px有不透明度0.45→0的加暗渐变;标题带模糊10 px阴影。
- 右下角放播放状态徽标(暂停、静音)。真实网站的视频使用autoplay、muted、loop和playsinline。
何时使用:用于旅游、酒店、餐厅或招聘首屏,借氛围与运动传达单张照片难以表达的感受。

参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/168.txt
共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/lp2.js
请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。

使用示例

示例输入

请实现“背景视频 · Background video”:首屏背景中播放视频

示意结果

下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。

提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。