$(function () { //Outer DIV var imageWrap = $('.vfx-image-wrap' ), //Foreground image topImage = $(this).find('.before-image'), //Dividing line divider = $(this).find('. divider-bar'), stayBounce = $('.toggle-function');
imageWrap.on("mousemove", function (e) { // Gotta localize top image and divider so it only applies to this var offsets = $(this).offset(), fullWidth = $(this).width(), mouseX = e.pageX - offsets.left, topImage = $(this).find('.before-image'), divider = $(this).find('.divider-bar');
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn