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.

[Slide] Slide animation overflows body for direction set to "left" or "up"

See original GitHub issue
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Slide animation should not overflow body.

Current Behavior 😯

Slide animation overflows body when direction is set to left or up.

Steps to Reproduce 🕹

I reproduce it on your own demo for slide animation. All you have to do is open link below, change direction to left or up and you can see scrollbar for a fraction of a sec. If you increase timeout it will be more visible.

Link:

  1. https://codesandbox.io/s/rr31x0pv6o?module=%2Fdemo.js

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
maxikuehncommented, Dec 17, 2020

Anyone has a temporary fix for this issue?

An easy fix would be to wrap the Transition Component in a div and prevent the overflow like this:

<div style={{ overflow: 'hidden' }}>
   <Slide in={open} direction="left" mountOnEnter unmountOnExit>
      ...
   </Slide>
</div>

this way the transition stays inside the div and no scrollbars will appear.

1reaction
pradeepa1997commented, Mar 31, 2020

can i set two transition directions when the slide will appear and disappear . Ex:It will come from left side and It will disappear in right side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Slide] Slide animation overflows body for direction set to "left ...
Slide animation overflows body when direction is set to left or up . Steps to Reproduce. I reproduce it on your own demo...
Read more >
jquery - Slide right to left? - Stack Overflow
Works fine, only it slides from left to right when I try it. Is it possible to make it animate the other way...
Read more >
overflow - CSS: Cascading Style Sheets - MDN Web Docs
Overflow options include clipping, showing scrollbars, or displaying the content flowing out of its container into the surrounding area.
Read more >
Finding/Fixing Unintended Body Overflow - CSS-Tricks
I ran into this issue designing the search form on CodePen that kinda slides out when you click a thing. Simplified, that would...
Read more >
CSS animation-fill-mode Property - W3Schools
CSS animations do not affect the element before the first keyframe is played ... values that is set by the last keyframe (depends...
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