You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ Use the [CSS](example/offcanvas.css) that's shown on the example and customise t
41
41
</body>
42
42
```
43
43
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
+
44
46
### CSS
45
47
46
48
```css
@@ -52,8 +54,6 @@ Use the [CSS](example/offcanvas.css) that's shown on the example and customise t
52
54
import'offcanvas';
53
55
```
54
56
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.
0 commit comments