An open API service indexing awesome lists of open source software.

https://github.com/biasiolo/slide-menu

Welcome to Slide Menu, a simple jQuery-based project for creating a wide color button that opens a sliding menu.
https://github.com/biasiolo/slide-menu

button-animation css javascript jquery slide slide-menu ui-design ux-design wide-button

Last synced: 2 months ago
JSON representation

Welcome to Slide Menu, a simple jQuery-based project for creating a wide color button that opens a sliding menu.

Awesome Lists containing this project

README

        

# Slide Menu

Welcome to Slide Menu, a simple jQuery-based project for creating a wide color button that opens a sliding menu.

## Getting Started

To use Slide Menu in your project, follow these steps:

1. Include jQuery in your HTML:

```html

```

2. Add the CSS and JavaScript files:

```html


```

3. Create a button with the class `fifth`:

```html
Open Menu
```

4. Add left and right modals with your desired content:

```html


```

5. Customize the styles in `styles.css` to fit your project's design.

6. Initialize the Slide Menu:

```javascript
$(document).ready(function() {
$(".fifth").click(function() {
$(".modal.left").toggleClass("show-left");
$(".modal.right").toggleClass("show-right");
});

$(document).mouseup(function(e) {
var modal = $(".modal");

if (!modal.is(e.target) && modal.has(e.target).length === 0) {
modal.removeClass("show-left show-right");
}
});
});
```

## Options

- `fifth`: The button class to trigger the sliding menu.
- `modal left` and `modal right`: Classes for left and right modals, respectively.

Feel free to explore and customize the project to suit your needs!

## License

This project is licensed under the [MIT License](LICENSE).