Animation On Scroll Skill
SkillDev toolsCreate on-scroll animation triggers using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use for scroll-reveal, animate-on-scroll, or sequencing element animations when entering the viewport.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Animation On Scroll Skill skill
What this skill tells your AI
The instructions your AI receives, as published by bidewio/better-openclaw in skills/animation-on-scroll/SKILL.md and read by ahel’s review.
Usage checklist
- Insert the JS snippet in the
<head>after the keyframes - Add animation class and
animate-on-scrollto elements - Ensure keyframe name matches the Tailwind animation reference
IntersectionObserver trigger
<script>
(function () {
const style = document.createElement("style");
style.textContent = `
.animate-on-scroll { animation-play-state: paused !important; }
.animate-on-scroll.animate { animation-play-state: running !important; }
`;
document.head.appendChild(style);
const once = true;
if (!window.__inViewIO) {
window.__inViewIO = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("animate");
if (once) window.__inViewIO.unobserve(entry.target);
}
});
}, { threshold: 0.2, rootMargin: "0px 0px -10% 0px" });
}
window.initInViewAnimations = function (selector = ".animate-on-scroll") {
document.querySelectorAll(selector).forEach((el) => window.__inViewIO.observe(el));
};
document.addEventListener("DOMContentLoaded", () => initInViewAnimations());
})();
</script>
Keyframes
@keyframes animationIn {
0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}
Tailwind example
<div class="animate-on-scroll [animation:animationIn_0.8s_ease-out_0.1s_both]">...</div>
Customization knobs
- Trigger: Adjust
thresholdandrootMarginfor earlier/later reveals - Repeat: Set
once = falsefor replay on re-entry - Motion: Tweak
translateYandblurin keyframes - Timing: Change duration/delay in the animation value
Tips for AI Agents
- Ask whether animations should run once or repeat.
- Confirm motion style (fade, slide, blur, scale).
Signals
- GitHub stars
- 58
- Forks
- 6
- Last commit
- Aug 2026
Advanced
- Item type
- skill
- Key
animation-on-scroll- Source
- github.com/bidewio/better-openclaw
github.com/bidewio/better-openclaw
Related picks
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · wshobson
The pick for JavaScriptcss-animations
Skill · alecs5am
The pick for Cssreset-css
Skill · thedaviddias
The pick for Csstailwind
Skill · alecs5am
The pick for Tailwindtailwind-design-system
Skill · asymmetric-al
The pick for Tailwind