regression when using animation from 0.4.3
See original GitHub issueI was using the following code in 0.4.3 without any issues:
<Manager>
<Target component={null}>
<Button label="button" onClick={this.togglePopover} />
</Target>
<VelocityTransitionGroup
enter={{
animation: {
opacity: [1, 'easeOutQuart'],
scale: [1, [600, 35]],
},
duration: 300,
}}
leave={{
animation: {
opacity: [0, 'easeOutQuart'],
scale: [0.3, [500, 35]],
},
duration: 150,
}}
runOnMount
>
{this.state.isOpen &&
<Popper placement="bottom">
Popper!
</Popper>}
</VelocityTransitionGroup>
</Manager>
I rewrote this code after updating to 0.5.0:
<Manager>
<Target>
{({ targetRef }) => (
<Button
label="button"
ref={targetRef}
onClick={this.togglePopover}
/>
)}
</Target>
<VelocityTransitionGroup
enter={{
animation: {
opacity: [1, 'easeOutQuart'],
scale: [1, [600, 35]],
},
duration: 300,
}}
leave={{
animation: {
opacity: [0, 'easeOutQuart'],
scale: [0.3, [500, 35]],
},
duration: 150,
}}
runOnMount
>
{this.state.isOpen &&
<Popper placement="bottom">
{({ popperRef, popperStyle, popperPlacement }) => (
<div
ref={popperRef}
style={popperStyle}
data-placement={popperPlacement}
>
Menu?
</div>
)}
</Popper>}
</VelocityTransitionGroup>
</Manager>
I’m sure there is a possibility I’m doing something wrong and I’ll keep hacking on it, but I figured it was worth raising!
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
regression when using animation from 0.4.3 · Issue #13 - GitHub
I was using the following code in 0.4.3 without any issues:
Read more >Interval Regression | R Data Analysis Examples - OARC Stats
Interval regression is used to model outcomes that have interval censoring. In other words, you know the ordered category into which each observation...
Read more >An Animated Guide: An introduction to Poisson Regression
An Animated Guide: An Introduction To Poisson Regression ... Poisson regression is available in SAS through the GENMOD procedure (generalized modeling).
Read more >Regression analysis - YouTube
This animation provides an explanation for how regression analysis can be used to examine the relationship between two or more variables.
Read more >13.10 Animating a Three-Dimensional Plot
13.10.2 Solution. Rotating a 3D plot can provide a more complete view of the data. To animate a 3D plot, use play3d() with...
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
I feel you on it, I really liked
component
as well since it was much more simple. But, I guess simple doesn’t always mean other things will be simple 😅I think I’m going to go with just
popperProps
. It will merge whatever components props are above it so users should still be able to add styles just fine since you can do something like the following…Should be good to go now with the latest release https://github.com/souporserious/react-popper/commit/2109ac0aa4210eafc668b3abe8d6e7a9ac2b2ada 🎉 feel free to reopen or file any new issues you find 😅 thanks for working through it with me!