clauderic / clauderic/react-tiny-virtual-list

Suggestion: change padding-top & padding-bottom of the container

Open
#82 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.5k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

Hi,

I've investigated how virtuallization of Instagram works and saw that they are not using `position: absolute` at the children & not updating children positioning / styles at all, instead they changing `padding-top` & `padding-bottom` of the parent container! (SUPER COOOL 🤩).

![WSdq465kVC](https://user-images.githubusercontent.com/9304194/69795530-09e61000-11d5-11ea-9100-aef370912b1b.gif)

WDYT? can we refactor this lib to something similar?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.