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.

Transition to initial position

See original GitHub issue

Please check this link

There is toggle button, click it few times. You would notice that every time when lists appears, there is transition to initial position in the first list. This transition reproduces with small amount of items, when full width of all items is smaller than viewport of list’s width. Second list does not have this transition.

bug5

It’s very noticeable on my project because I use react-horizontal-scrolling-menu in rows that are rendered by ReactList. So every time I scroll the page, new react-horizontal-scrolling-menu elements renders and transition animation appears. How do you think, is it possible to set initial position statically without transition?


btw in second list I’ve used

scrollToSelected
selected="item6"

and item 6 indeed appeared in the viewport, but not in center. This is not so important, just let you know.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
asmyshlyaev177commented, Feb 19, 2019

Can you check now? Seems like it works ok.

0reactions
NeXTscommented, Jun 16, 2020

Thanks for the quick response to this On branch 43 after page load elements remains in the beginning of the list (on the left). Although after any interaction with the page (for example window resize), elements are transitioned to the center. My expectations were that after page load elements will be centered by default.

how did you resolve this, encounter same problem

I didn’t

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disabling and enabling css transition to initialize position
I want to 1) position them, using transform, so they have an initial position without transition. 2) activate transition by adding a class....
Read more >
transition - CSS: Cascading Style Sheets - MDN Web Docs
The transition property is specified as one or more single-property transitions, separated by commas. Each single-property transition describes ...
Read more >
Transition on Position and left - HTML & CSS - SitePoint Forums
First off, you don't need to transition the position property. ... Next, to get this to work you need to set an initial...
Read more >
CSS Transitions and Transforms for Beginners - Thoughtbot
The transition-delay property allows you to specify when the transform will start. By default, the transition starts as soon as it is triggered ......
Read more >
CSS transition Property - W3Schools
The transition property is a shorthand property for: ... CSS Syntax. transition: property duration timing-function delay|initial|inherit; ...
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