-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transitions to Sections bg and line #2491
Conversation
|
b9b8c86
to
f549744
Compare
f549744
to
eab8feb
Compare
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
@viktorrenkema can you run While I think it's a great addition, I'm slightly concerned on the animated background, I find the background to be quite heavy/distracting. @zenoachtig what do you think? Here is a preview link: https://a859aaea.gitbook-open.pages.dev/docs.gitbook.com/content-editor/editor/navigation |
I see what you mean, I also considered using a light grey instead, that'd be a bit more subtle. But yeah I'll let @zenoachtig provide his take :) CleanShot.2024-09-26.at.16.39.56.mp4 |
I agree with @SamyPesse's concern, i think the gray background is indeed a lot subtler and as a bonus it matches the left sidebar better 😄 The square corners on this element annoy me a bit, but I don't think rounding the two right corners is a good idea either. Probably nothing worth doing about. |
Yeah the sharp corners bug me too, but it also matches the 'was this helpful' picker below etc. we could prolly pimp this component in general, it can be prettier. but not worthwhile for now, and this pr provides the backbone for the interactive part and we can always tweak the exact design of it if we were to redesign the whole component. @SamyPesse wdyt, keep the suggested gray background, or remove the background part altogether? |
Just having a look at the preview branch. I think this looks great and had a couple of minor suggestions:
|
eab8feb
to
1cf5bcf
Compare
Great points yeah, I hadn't noticed the former. The background effect is being removed from this PR but we have some ideas on bringing it in somewhere else, so duly noted. |
1cf5bcf
to
d11c7d5
Compare
d11c7d5
to
8253c34
Compare
GitBook Preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx
Outdated
Show resolved
Hide resolved
5d24ef6
to
2fc108b
Compare
This PR adds a line animation transitions for the current active chapter in the Sections/ToC, respecting
prefers-reduced-motion
.Related Slack thread.
Before:
CleanShot.2024-09-25.at.18.00.27.mp4
After:
CleanShot.2024-11-26.at.17.49.11.mp4