Motion Prompt #061|筛选标签 · Filter chips(中文译文)
点击小标签组合筛选条件;中文译文,效果未实测。
来源:import:liubai_versions_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0303/translation-zh.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:
使用示例提示词正文
请使用“Filter chips”(チップ),它是“UI component names”中的一个名称。 Motion Prompt #061 定义:点击小胶囊形标签,添加或移除筛选条件 示例展示:点击“新上架”和“免费”筛选标签后,标签增加勾号并变蓝,不匹配的卡片淡出。 规格: - 卡片为542×191,循环4.5 s。四个日文标签为全部、新上架、热门、免费:高34、圆角半径17,宽度=文字宽度+32,从左开始间隔10 px。 - 点击时刻:0.95 s选中新上架,1.75 s选中免费,3.0 s取消新上架,3.6 s取消免费。 - 每次变化用0.15 s的easeOutCubic;标签加宽18 px给勾号留空间,填充浅蓝色,边框和文字为蓝色。 - 下方列表为两列两行共四张242×54卡片;不匹配卡片的不透明度从1降至0.12。 何时使用:让用户组合少量快捷筛选条件,缩小列表或搜索结果范围。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/061.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/ui.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“筛选标签 · Filter chips”:点击小标签组合筛选条件;中文译文,效果未实测。
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。