framer-motion-scroll
Skill1 starsChanged 3 months agoMITView on GitHub
Framer Motion skill for scroll-linked animations — useScroll, useTransform, scroll-triggered animations, parallax. Use when building scroll-driven animations, parallax effects, progress indicators, or when asking about Framer Motion scroll, useScroll, or scroll-linked animations.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- C-Jeril/framer-motion-skillsedited, first seen Mar 21, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- C-Jeril/framer-motion-skills★ 899% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository138 other files it gives its agents.
- design-loopSkill
- landing-pageSkill
- product-showcaseSkill
- web-artifacts-builderSkill
- apple-designSkill
- better-colorsSkill
- better-interfaceSkill
- better-layoutSkill
- better-typographySkill
- better-uiSkill
- color-paletteSkill
- design-first-ui-promptingSkill
- design-reviewSkill
- design-systemSkill
- frontend-design-anchorsSkill
- frontend-designSkill
- theme-factorySkill
- animated-component-librariesSkill
- build-awwwards-quality-sitesSkill
- frontend-ui-engineeringSkill
- react-nativeSkill
- react-patternsSkill
- shadcn-uiSkill
- tailwindcssSkill
- tailwind-theme-builderSkill
- better-accessibilitySkill
- browser-testing-with-devtoolsSkill
- onboarding-uxSkill
- performance-optimizationSkill
- responsiveness-checkSkill
- ux-auditSkill
- ux-compareSkill
- ux-extractSkill
- vitestSkill
- webapp-testingSkill
- ai-image-generatorSkill
- algorithmic-artSkill
- favicon-genSkill
- icon-set-generatorSkill
- image-processingSkill
- seo-local-businessSkill
- wordpress-elementorSkill
- agent-harness-constructionSkill
- agent-introspection-debuggingSkill
- agent-self-evaluationSkill
- deep-diveSkill
- eval-harnessSkill
- llm-integrationSkill
- mcp-builderSkill
- prompt-engineeringSkill
- prompt-optimizerSkill
- safety-guardSkill
- search-firstSkill
- senior-prompt-engineerSkill
- skill-scoutSkill
- d1-migrationSkill
- database-schema-designerSkill
- db-seedSkill
- sql-database-assistantSkill
- git-workflowSkill
- The first 60 shown.
The file
Files
Framer Motion Scroll Animations
When to Use This Skill
Apply when implementing scroll-driven animations: using useScroll, useTransform, scroll-linked effects, parallax, or progress indicators. When the user asks about scroll animation in Framer Motion, recommend Framer Motion's scroll utilities.
Related skills: For core animation use framer-motion-core; for variants use framer-motion-variants; for layout animations use framer-motion-layout.
useScroll
useScroll tracks scroll progress:
import { useScroll, useTransform } from "framer-motion";
function Component() {
const { scrollYProgress } = useScroll();
return (
<motion.div
style={{ scaleX: scrollYProgress }}
/>
);
}useScroll Options
const { scrollYProgress } = useScroll({
target: ref,
offset: ["start end", "end start"],
container: containerRef
});Offset Format
"start end" where each can be: start, center, end, or percentage.
| Combination | Meaning |
["start end", "end start"] | While element visible |
["start 100%", "end -100%"] | While scrolling down |
[0, 1] | Entire document scroll |
useTransform
Map one motion value to another:
const { scrollYProgress } = useScroll();
const scale = useTransform(scrollYProgress, [0, 1], [1, 2]);
const opacity = useTransform(scrollYProgress, [0, 0.5, 1], [0, 1, 0]);
return <motion.div style={{ scale, opacity }} />;Multi-step Transforms
const x = useTransform(
scrollYProgress,
[0, 0.3, 0.6, 1],
[0, -50, 50, 0]
);Disable Clamping
const x = useTransform(
scrollYProgress,
[0, 1],
[0, 100],
{ clamp: false }
);Parallax Effect
Different scroll speeds for depth:
function ParallaxSection() {
const { scrollYProgress } = useScroll({
target: ref,
offset: ["start end", "end start"]
});
const y = useTransform(scrollYProgress, [0, 1], [100, -100]);
return (
<motion.div ref={ref} style={{ y }}>
Parallax Content
</motion.div>
);
}Scroll Progress Bar
function ScrollProgress() {
const { scrollYProgress } = useScroll();
return (
<motion.div
style={{
scaleX: scrollYProgress,
position: "fixed",
top: 0,
left: 0,
right: 0,
height: 4,
backgroundColor: "#00ff00",
transformOrigin: "0%"
}}
/>
);
}useInView with Variants
Trigger animation when entering viewport:
import { useInView, motion } from "framer-motion";
import { useRef } from "react";
function FadeInSection() {
const ref = useRef(null);
const isInView = useInView(ref, { once: true, margin: "-100px" });
return (
<motion.div
ref={ref}
initial={{ opacity: 0, y: 50 }}
animate={isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 50 }}
transition={{ duration: 0.6 }}
>
Content
</motion.div>
);
}useInView Options
| Prop | Type | Default | Description |
| once | boolean | false | Only trigger once |
| margin | string | "0px" | Offset for trigger |
| amount | "any" | "all" | number | "any" | Visibility threshold |
Best practices
- ✅ Use useScroll with useTransform for scroll-linked animations.
- ✅ Use whileInView for simple scroll-triggered animations.
- ✅ Use proper offset values to control start/end.
- ✅ Use
transformOriginfor scale animations.
Do Not
- ❌ Use scroll animations without offset values.
- ❌ Forget to set height on scroll containers for horizontal scroll.
- ❌ Animate layout properties for scroll effects.
- ❌ Use
useInViewwithoutonce: truefor entrance animations.
Learn More
https://www.framer.com/motion/use-scroll/ https://www.framer.com/motion/use-transform/ https://www.framer.com/motion/use-in-view/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

