Skip to content
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

是否需要支持锚点跳转后对应文字高亮 #921

Open
SkyeYoung opened this issue Jul 22, 2021 · 3 comments
Open

是否需要支持锚点跳转后对应文字高亮 #921

SkyeYoung opened this issue Jul 22, 2021 · 3 comments

Comments

@SkyeYoung
Copy link
Member

image.png

某一些锚点对应的那行文字太不引人注目了,比如上面的 ref6,跳转后找一找才能够发现(直接贴这样的图片肯定是容易发现的,但实际使用中,有时候很难一下子将目光集中到那一行)。

所以是否需要支持跳转后的文字高亮呢?具体表现我想的是:跳转后黄色的背景高亮,慢慢闪烁一次就好。

@Ahacad
Copy link
Member

Ahacad commented Jul 22, 2021

类似 Google 搜索的结果?

@SkyeYoung
Copy link
Member Author

@Ahacad emmm,Google 那个是什么样的?我试了一下好像也没有高亮,明天我写出来看吧。

@SkyeYoung
Copy link
Member Author

SkyeYoung commented Jul 24, 2021

预览地址:http://understood-guide.surge.sh/tools/wsl

点击任意的 ref 就可看到具体的表现了。

样式和动画还需要再调整。如果觉得可以的话,我就开个 PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants