Added support for non-moz/webkit and correcting some minor bugs (keyframes for popin/popout)