Skip to content

Commit

Permalink
feat(anchor): 新增demo自定义滚动效果 (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
boogie-ben authored Nov 19, 2024
1 parent 483aae0 commit c2be429
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/web/api/anchor.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ Available in large and small sizes
{{ small }}

{{ large }}

### Custom scroll effect

Disable the default JavaScript scroll animation that occurs when clicking on anchor links, making it behave like a regular `<a>` tag. Allow users to customize the scroll effect.

{{ custom-scroll }}
6 changes: 6 additions & 0 deletions docs/web/api/anchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ spline: navigation

{{ large }}

### 自定义滚动效果

关闭点击锚点链接后默认的js滚动动画,表现为普通 `<a>` 标签一致,可由用户自定义滚动效果

{{ custom-scroll }}

### 自定义锚点高亮

{{ customize-highlight }}

0 comments on commit c2be429

Please sign in to comment.