使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/bintzgavin/helios --skill example-tailwind-animation开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Tailwind CSS Animation
Use Tailwind CSS to style and animate Helios compositions. Combine standard Tailwind utility classes with Helios's autoSyncAnimations feature.
Quick Start
- Configure Helios:
const helios = new Helios({
// ...
autoSyncAnimations: true, // Enable CSS synchronization
animationScope: document.getElementById('app')
});- Use Tailwind Classes:
<div class="w-full h-full bg-slate-900 flex items-center justify-center">
<div class="animate-bounce text-6xl text-white font-bold">
Hello Helios
</div>
</div>- Custom Keyframes (`tailwind.config.js`):
module.exports = {
theme: {
extend: {
animation: {
'spin-slow': 'spin 3s linear infinite',
}
}
}
}Key Patterns
Scoped Styles
When working in a monorepo or example folder, ensure your tailwind.config.js content array correctly targets your files to avoid global style leakage or missing styles.
Auto-Sync
With autoSyncAnimations: true, standard CSS animations (like animate-bounce, animate-spin) are automatically hijacked by Helios. helios.seek() will scrub the CSS animation to the correct point in time.
Source
- Example:
examples/tailwind-animation/