Skip to content

How is the scroll shadow implemented? #594

Answered by icflorescu
Toshinaki asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Toshinaki, thank you for your kind words and apologies for the delayed reply.
The details you mentioned were very important for me when I started the project and I took pride in making it as "pleasing to the eye" as possible, hence the shadows.

It's CSS, mostly. The code is a bit complex, but here is the main idea: the table is wrapped inside a ScrollArea component that also includes four absolutely-positioned div elements, which have some CSS classes displaying gradients applied depending on the scroll status.

The relevant parts should be here and here. The gradient backgrounds are defined here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by icflorescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants