question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

regression when using animation from 0.4.3

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
souporseriouscommented, Apr 25, 2017

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…

<Popper>
  {popperProps => (
    <div
      {...popperProps}
      className="popper"
      style={{
        ...myCustomStyles,
        ...popperProps.style
      }}
    >
      ...
    </div>
  )}
</Popper>
0reactions
souporseriouscommented, Apr 26, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found