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

https://github.com/rigelglen/slideup-modal

Better Awesome-er Easier Modals that Slide from the Top
https://github.com/rigelglen/slideup-modal

css javascript jquery modals slide

Last synced: 4 months ago
JSON representation

Better Awesome-er Easier Modals that Slide from the Top

Awesome Lists containing this project

README

          

## Slide Up CSS Modals
Sleek Sliding Modals, the way they should be .. Simple !

### Usage
- Drop in the `slideup.css` and `slideup.jquery.js` into your HTML file. For example











- Create the Modal, give it the class `slideup-modal` then add a unique id ( Can be anything, but Compulsory ) and drop in your content.


Loremipsum


lorem-ipsum



- Create the trigger ( Make sure it's an anchor tag ) and give it the attribute of `data-reveal-id` and set it equal to the ID of your modal

Launch the Modal
- Make sure the images have the correct path !
-Have Fun !

### Options
- All the modal styles and fully editable in CSS
- Go to `slideup.jquery.js` and look at the section under options,
you can change the speed, background click close and the class that closes the modal

### Screenshot

![Screenshot](https://i.imgur.com/RYiRk7f.png)

### JavaScript Triggers
- Close Modal : `var modal = $('.slideup-modal');modal.trigger('reveal:close');`
- Open Modal : Find it out yourself !

### License
Under MIT License