Motion Prompt #154|聚光灯悬停 · Spotlight hover
只有光标周围变亮
部分附加信息、来源说明或示例仍显示原文。
来源:import:liubai_public_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0396/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:
使用示例提示词正文
请使用“Spotlight hover”(スポットライトホバー),它是“Landing page & web effects, part 2”中的一个名称。 Motion Prompt #154 定义:只有光标周围区域被照亮。 示例展示:光标在深色卡片上移动时,仅其周围圆形区域亮起,邻近卡片边缘发光。 规格: - 视口511×168,页面背景#121828,三张深色卡片147×116、圆角半径10。单次4.7 s,在9.4 s包循环内播放两次。 - 光标持续按8字形运动:x = 255 + 190·sin(2πt/4.7),y = 92 + 40·sin(4πt/4.7)。 - 只在各卡片内部绘制以光标为中心、半径115 px的白色径向光,不透明度从中心0.34渐变至0;不溢出卡片。 - 卡片边框宽2,按距光标的距离发光;使用半径120 px、rgb(255,122,82)的橙色径向光。远处边缘只保留8%白色的浅底线。 - 没有跟随延迟,光始终精确位于光标处;常规实现将坐标写入CSS变量,作为radial-gradient中心。 何时使用:用于深色网站的功能卡或价格卡列表,突出指针所在位置。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/154.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/lp2.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“聚光灯悬停 · Spotlight hover”:只有光标周围变亮
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。