Comments (1)
Hi @samdenty. Have you got an example of a specific use-case of something you're currently unable to achieve because of MotionValue
s? Even though you define a prop using a MotionValue
you are still able to use variants, whileHover etc to animate them. The MotionValue
is just there to create relationships.
const Component = ({ animate, rotateX }) => {
const rotateX = useMotionValue(0)
const opacity = useTransform(rotateX, computeOpacity)
return <motion.div animate={{ rotateX: 90 }} style={{ opacity, rotateX }} />
}
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.