我用的是jquery气泡弹出,代码如下
$(document).ready(function(){
//create bubble popups for each element with class "button"
$('.button').CreateBubblePopup({
selectable: true,
innerHtmlStyle: {
color:'#333333',
我有几个带有CSS动画的气泡div。使用jQuery,我想在悬停时停止动画,当用户不再悬停时继续运行。
Chrome中的所有东西都运行得很好,但是Firefox决定在暂停它之前先把泡沫弄坏。在暂停之前,它看起来是首先重置了气泡动画。
这是
我用来暂停它的唯一代码是:
// Set the hover and hoverOut
jQuery('.bubble').hover(function () {
// Pause the CSS animation
jQuery(this).css('-webkit-animation-play-state'