This simple plug in will allow you to use jQuery toggle animations to add to AWC, to make opening and closing the chat more stylish. The code makes use of the onclose and onopen events.
- Code:
[panda=js]avacweb_chat_config.add_event('onopen', function(e) {
e.preventDefault();
$('#avacweb_chat').slideDown();
avacweb_chat.button.style.backgroundColor = '';
});
avacweb_chat_config.add_event('onclose', function(e) {
e.preventDefault();
$('#avacweb_chat').slideUp();
});