Skip to content

Commit 94bfa62

Browse files
Update readme
1 parent dec4e30 commit 94bfa62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Use the [CSS](example/offcanvas.css) that's shown on the example and customise t
4141
</body>
4242
```
4343

44+
If you are using a fixed element to stick a navigation to the top, you can add the attribute `data-offcanvas-fixed` so once the offcanvas is shown it doesn't go to the top due to transform causing fixed elements to be absolute. See the [example](example/index.html) for more information.
45+
4446
### CSS
4547

4648
```css
@@ -52,8 +54,6 @@ Use the [CSS](example/offcanvas.css) that's shown on the example and customise t
5254
import 'offcanvas';
5355
```
5456

55-
If you are using a fixed element to stick a navigation to the top, you can add the attribute `data-offcanvas-fixed` so once the offcanvas is shown it doesn't go to the top due to transform causing fixed elements to be absolute. See the example for more information.
56-
5757
---
5858

5959
<a href="https://firstandthird.com"><img src="https://firstandthird.com/_static/ui/images/safari-pinned-tab-62813db097.svg" height="32" width="32" align="right"></a>

0 commit comments

Comments
 (0)