retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.01k stars 201 forks source link

Switch tabs without page reload and scroll #651

Closed afaa97 closed 7 months ago

afaa97 commented 8 months ago

Hello, is there a way to switch tabs without the page reloading and scrolling? I'd like to use the anchor of Tab 2 as a link within Tab 1 and click on Tab 1 to transition to Tab 2 and so on.

An example:

example

Edit: Okay scrolling would be ok if the current tab height is large.

geoffreymcgill commented 8 months ago

Unfortunately, Retype does not support this functionality currently, but I am going to investigate after the v3.6.0 release and try to get this working.

geoffreymcgill commented 7 months ago

This enhancement has been made and will be included in the next release of Retype. Now Retype supports linking directly into any Tab without a page reload.

The following sample demonstrates the scenario.

+++ Tab 1
This is Tab 1

[Tab 2](#tab-2)
+++ Tab 2
This is Tab 2

[Tab 3](#tab-3)
+++ Tab 3
This is Tab 3

[Tab 1](#tab-1)
+++

Hope this helps.