Comments (3)
Woah! Interesting, I just located the issue.
On my <body>
tag I had the following css added:
body {
width: 100%;
height: 100%;
}
Upon removing height: 100%;
the useViewportScroll
feature worked as expected.
Might be something you want to add to the documentation as that's a pretty common css reset.
Thanks again!
from motion.
Yeah fair point, I'll leave this open to do so.
from motion.
Anyone have an example of fading in when scrolled into viewport or is this not an use case for useViewportScroll? Very new to not only framer but animation in a whole
from motion.
Related Issues (20)
- [BUG] whileHover & whileTap disable mix-blend-mode rule in css
- [BUG] Jumpy Scrolling
- [FEATURE] Request for Polyfill or Workaround for mode="popLayout" in React 16.14.0 with framer-motion @ 6.5.1 HOT 1
- [BUG] Scroll Progress does not respect layout changes
- [FEATURE] Add useDragThreshold hook for drag cancelation
- [BUG] framer-motion/dom v11.3.0+ requires React in non-React projects, despite optional peer dependency HOT 7
- [BUG] framer-motion-3d does work with on demand rendering
- [FEATURE] ADD SEARCH TO FRAMER MOTION HOT 1
- [BUG] m Tag Lacks Drag Functionality?
- [BUG] `AnimatePresence` rerender bug (needs repro) HOT 7
- [BUG] AnimatePresence does not guarantee that the item will exit/unmount HOT 2
- scrollYProgress is not accurate when using with window.scrollTo
- [BUG] useScroll Hook Not Recalculating on window.scrollBy
- [BUG] motion value change not apply to fontsize
- [BUG] Reorder - Moving all the time / Doesn't consider scale and origin of parent
- [BUG] Animation does not fire on page mount if using `LazyMotion` HOT 1
- [BUG] will-change: opacity changes stacking context of elements
- [FEATURE] Expose more scroll info in `useScroll`
- onAnimationStartWithDelay
- [BUG] AnimatePresence enter and exit animate not works properly when change it fast
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motion.