Jquery/在引导转盘中添加图像缩放功能

Jquery/在引导转盘中添加图像缩放功能,jquery,carousel,zooming,Jquery,Carousel,Zooming,我尝试在引导转盘中的图像上添加缩放功能(玻璃效果)。当我们在图像上悬停时,我想停止旋转木马。我已经测试了许多代码和解决方案,但都没有成功。 以下是第一个代码: // Carousel don't stop on hover // The zoom effect is working $('.carousel .item').on('mouseover',function(){ $(this).

我尝试在引导转盘中的图像上添加缩放功能(玻璃效果)。当我们在图像上悬停时,我想停止旋转木马。我已经测试了许多代码和解决方案,但都没有成功。 以下是第一个代码:

            // Carousel don't stop on hover
            // The zoom effect is working
            $('.carousel .item').on('mouseover',function(){
                $(this).find('img').lightzoom();
                $('.carousel').carousel('pause');
            }) .mouseout(function() {
                $('.carousel').carousel('cycle');
            });
这是第二个代码:

            // Carourel is stopping with a hover on image / slide
            // The zoom effect is working
            // But when we quit the carousel, cycle of carousel is broken 
            $('.carousel').hover(
                function() {
                    $(this).find('img').lightzoom();
                    $(this).carousel('pause');
                }
            );
如何在转盘上组合悬停和缩放功能? 有没有可能做到这一点? 谢谢你的帮助