Feature request: whileHover and whileTap props
See original GitHub issueHi Jay,
Congratulations on hitting it out of the ballpark with legend-motion
.
One of my favorite features from framer-motion
are the whileTap
and whileHover
props.
Is this something you would consider adding too?
Thanks!
Issue Analytics
- State:
- Created a year ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
[BUG] whileTap and whileHover props do not work as ... - GitHub
Describe the bug whileTap and whileHover props do not work as expected on elements inside an iFrame. 3. IMPORTANT: Provide a CodeSandbox ...
Read more >Framer-Motion: New And Underestimated Features - Shakuro
Motion component allows us to animate visual representations of interactive elements with whileHover, whileTap, whileDrag and whileFocus props.
Read more >Gestures | Framer for Developers
motion components provide multiple gesture animation props: whileHover , whileTap , whileFocus , whileDrag and whileInView . These can define animation ...
Read more >framer-motion/CHANGELOG.md - UNPKG
115, - Fixing unsetting `whileHover` and `whileTap` if they contain ... 117, - Checking animation props for array variants as well as strings....
Read more >framer-motion | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn. ≡. Home · Getting started · Features.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes you’re right @nandorojo. I’ve been doing mostly web development recently so I was thinking too much like web.
In version 2.0.0 I added a Motion.Pressable.
whileTap
andwhileHover
now require aMotion.Pressable
ancestor, which is uses for tracking whether it is hovered or pressed. You can use it like this:Good point! I will look into passing the Pressable props through.