$(document).ready(function() {
                        $('.open-modal').quickModal({
                            animation: 'fade-left',
                            speed: 1000,
                            timing: 'ease-in-out',
                            closeModalSelector: '.close-modal',
                            enableEsc: true,
                            enableClickAway: false,
                            appendBackgroundTo: 'body'
                            onOpen: function() { alert('Hi!'); },
                            onClose: function() { alert('Bye!'); }
                        });
                    });
                
Click Me