javascript - 关于使用 Animate.css 的问题 - 在动画页面中添加了水平滚动条

标签 javascript jquery html css animation

我正在尝试使用 Animate.cssjQuery 为文本添加一些动画 @ This Demo

我正在使用 jquery addClass().animated.bounceInLeft.bounceInRight 应用于使用此代码的元素:

$(function () {
    $('#solu-title-1').addClass('animated bounceInLeft');
    $('#solu-title-2').addClass('animated bounceInRight');
    $('#solu-description-1').addClass('animated bounceInLeft');
    $('#solu-description-2').addClass('animated bounceInRight');
});

但如您所见,该页面在动画过程中也变得令人讨厌的 Horizo​​ntal Scrollbar。你能告诉我如何阻止这一切吗?

谢谢

最佳答案

body {
    overflow-x: hidden;
}

http://jsfiddle.net/DTcHh/3127/

关于javascript - 关于使用 Animate.css 的问题 - 在动画页面中添加了水平滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27882156/

相关文章:

javascript - 使用 Google Maps API 绘制 map 路径/航路点并播放路线

css - 位置固定的菜单栏不起作用

html - 提交表单后,是否可以阻止在 URL 中显示“submit=submit”?

javascript - cypress 测试中清除日期字段

javascript 去掉逗号

javascript - Jquery-te如何停止javascript执行?

javascript - 有效的 JSON 会破坏 HandlebarsJS 和 $.getJSON 调用

javascript - Jquery下如何将数据传递给函数

html - 背景图片有上边距、左边距、右边距怎么去掉

JavaScript "missing ) after argument list"