OpenTabletDriver / opentabletdriver.github.io

The next version of OpenTabletDriver.Web
http://opentabletdriver.net/
GNU Affero General Public License v3.0
1 stars 5 forks source link

inject-anchors: Refactor and enable blink on 'hashchange' #124

Closed gonX closed 9 months ago

gonX commented 9 months ago

This also changes the behavior of the animation to span the entire block, rather than rewriting the block text to a span, and then animating the span.

This is an intentional stylistic change since I felt the previous method was not obvious enough.

This also fixes animations 'eating' the anchor link

Fixes #72

X9VoiD commented 9 months ago

Pushed new commits to allow blinking only on the following events:

and also made a minor stylistic change to not include the padding on what is highlighted.

Minor note: We're not blinking anymore when the anchor itself is clicked. Doesn't make sense to blink when the user is already on the header and is clicking the anchor.