https://github.com/null-none/tiny-offcanvas
Tiny and simple javascript offcanvas.
https://github.com/null-none/tiny-offcanvas
css javascript offcanvas scss
Last synced: 28 days ago
JSON representation
Tiny and simple javascript offcanvas.
- Host: GitHub
- URL: https://github.com/null-none/tiny-offcanvas
- Owner: null-none
- License: mit
- Created: 2024-09-20T17:36:52.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-20T19:34:42.000Z (7 months ago)
- Last Synced: 2025-02-11T12:34:22.498Z (3 months ago)
- Topics: css, javascript, offcanvas, scss
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiny-offcanvas
Tiny and simple javascript offcanvas.## Options
Option | Type | Default | Description
------ | ---- | ------- | -----------
id | string | | id DOM element
data-position | string | left | special class can be added
data-size | string | small | special class can be added
data-transition | int | 300ms | opening and closing animation speed## Usage example
### Script
```javascript
var offcanvas = new Offcanvas;
```### View
```htmlDefault
...
```