Skip to content

Commit 9d2a804

Browse files
committed
Merge pull request cferdinandi#227 from cferdinandi/development
Updated readme
2 parents 9e3728c + d718679 commit 9d2a804

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,7 @@ Smooth Scroll is built with modern JavaScript APIs, and uses progressive enhance
238238

239239
## Known Issues
240240

241-
- If the `<body>` element has been assigned a height of `100%`, Smooth Scroll is unable to properly calculate page distances and will not scroll to the right location. The `<body>` element can have a fixed, non-percentage based height (ex. `500px`), or a height of `auto`.
242-
- SmoothScroll looks for a `hash` on the `href` of the link. As a result passing in an empty hash (`#`) will not work and will jump to the top of the page.
243-
- Many browsers will treat `#top` the same as an empty hash (`#`), resulting in a jump to the top of the page. To animate scrolling to the top of the page, please use a different ID.
244-
- To prevent the page from jumping, Smooth Scroll removes the target element's ID, scrolls, and then adds it back. As a result, elements styled using the ID as a selector will momentarily lose their styling. I recommend using classes as selectors instead.
245-
241+
If the `<body>` element has been assigned a height of `100%`, Smooth Scroll is unable to properly calculate page distances and will not scroll to the right location. The `<body>` element can have a fixed, non-percentage based height (ex. `500px`), or a height of `auto`.
246242

247243

248244
## Programatically adding `[data-scroll]` attributes to all anchor links

0 commit comments

Comments
 (0)