OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add mengto/skills --skill animation-on-scroll
Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.
npx skills add mengto/skills --skill animation-on-scroll
<head> after the keyframes.animate-on-scroll to elements.threshold and rootMargin for earlier/later reveals.once = false to allow replays when re-entering.translateY and blur in keyframes.<style>
/*
Sequence animation intro. Usage:
1) Insert this code in the <head>
2) Add to Tailwind Classes: [animation:animationIn_0.8s_ease-out_0.1s_both]
*/
@keyframes animationIn {
0% {
opacity: 0;
transform: translateY(30px);
filter: blur(8px);
}
100% {
opacity: 1;
transform: translateY(0);
filter: blur(0px);
}
}
</style><div class="animate-on-scroll [animation:animationIn_0.8s_ease-out_0.1s_both]">
...
</div>