返回提示词

Motion Prompt #058|轮播图 · Carousel

横向滑动切换展示项

发布于 更新于 浏览 0

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

来源:import:liubai_public_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0300/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:

使用示例

提示词正文

请使用“Carousel”(カルーセル),它是“UI component names”中的一个名称。
Motion Prompt #058

定义:横向移动的幻灯片,每次展示一项
示例展示:每次点击右箭头,三幅不同图片组成的横排就向左移动一格,下方圆点状态随之改变。
规格:
- 卡片为542×191,循环4.5 s。幻灯片330×138、圆角半径8,居中,间距18 px;相邻幻灯片从两侧边缘露出。
- 左右为白色圆形箭头按钮,半径18、阴影模糊10;下方三个指示点,当前项为蓝色16×8,其他为8×8。
- 光标分别在1.0、2.1、3.2 s点击右箭头(514,88)。
- 每次点击使整排在0.4 s内按easeInOutCubic左移348 px,即一张幻灯片宽度加间距。
- 三张图片(风景、三个圆、柱状图)重复排列,因此移动三次后第一张再次出现。
何时使用:空间有限、需要一次展示一张图片或推荐内容时使用。

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

使用示例

示例输入

请实现“轮播图 · Carousel”:横向滑动切换展示项

示意结果

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

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