function animation() {
            if(!isShown) {
                $('div.msg-container').animate({ opacity: 1, "top": top, "left": left }, 300);
            }
            else {
                $('div.msg-container').animate({ opacity: 0, "top": top - 50, "left": left }, 300);
            }
        }
/* 
        * Animation Action
        * 
        * It is created animation when opens and closes.
        * 
        */
Animation Action

It is created animation when opens and closes.
Animation Action It is created animation when opens and closes .
function animation() {
            if(!isShown) {
                $('div.msg-container').animate({ opacity: 1, "top": top, "left": left }, 300);
            }
            else {
                $('div.msg-container').animate({ opacity: 0, "top": top - 50, "left": left }, 300);
            }
        }
function animation ( ) { if ( ! isShown ) { $ ( 'div.msg-container' ) . animate ( { opacity : 1 , "top" : top , "left" : left } , 300 ) ; } else { $ ( 'div.msg-container' ) . animate ( { opacity : 0 , "top" : top - 50 , "left" : left } , 300 ) ; } }
Animation Action
Animation Action