【发布时间】:2016-01-14 17:35:04
【问题描述】:
向下滚动时,您会看到 6 张作品集图片。 当您将鼠标悬停在它们上时,您将获得缩放效果。
如何在代码中关闭这种缩放效果?
谢谢。
【问题讨论】:
标签: wordpress image content-management-system zooming effect
向下滚动时,您会看到 6 张作品集图片。 当您将鼠标悬停在它们上时,您将获得缩放效果。
如何在代码中关闭这种缩放效果?
谢谢。
【问题讨论】:
标签: wordpress image content-management-system zooming effect
在您的themes/raw/js 文件夹中,您有文件common.js。在这个文件中找到行
$('.thumb, .gallery-icon').epicHoverFadeZoom({
overlayColor: udt_global_vars.thumb_rollover_color, //Hex: #xxxx
fontColor: udt_global_vars.thumb_rollover_text_color, //Hex: #xxxx
captionDirection: 'topToBottom', //String: caption slide in/out direction
opacity: udt_global_vars.thumb_rollover_opacity, //Integer: 0-1
transitionSpeed: 600, //Integer: transitions speed, in milliseconds
easing: 'swing', //String: easing method - see http://jqueryui.com/demos/effect/easing.html
padding: parseFloat(udt_global_vars.thumb_rollover_padding), //Integer: padding
mobileActive:false, //Boolean: whether to activate/deactivate for mobile
zoomFactor: parseFloat(udt_global_vars.thumb_rollover_zoom_factor), //Float: zoom factor
rolloverLogo: udt_global_vars.rollover_graphic
});
并评论他们,然后再试一次。
缩放效果基本上是由插件 jquery.epicHover-fadeZoom.js 制作的
【讨论】:
common.js 文件并注释或删除所有这些行,因为您的缩放插件已初始化。