实现三维翻牌文字轮换组件
制作可嵌入行内的文字轮换组件,支持三维翻转动效,并处理左对齐与容器裁切问题。
完整提示词
Create a text component that animates words changing like a physical slot machine or Rolodex. **Animation**: The old word should rotate 90° backward on the X-axis, while the new word flips up from the bottom. **Layout & Alignment**: This will be used inline (e.g., "We Deliver [Word]"). **CRITICAL**: Left-align the text within its container so it stays flush against the preceding text. Do not center it, or variable word lengths will create awkward gaps. **Technical**: Ensure the container uses preserve-3d and isn't strictly clipped, so the 3D rotation is fully visible.
可替换内容
- [Word]
分类与标签
编程开发、前端组件、文字动效、三维翻转、行内布局