slidedoor滑动门特效

slidedoor滑动门特效

exportWidth:暴露门的宽度 width

imagesWidth:单张图片的宽度width

每道门每次偏移量 translate=imagesWidth-exportWidth;

当前鼠标hover图片时,偏移后的left值应为当前图片images[i].style.left与每道门的偏移量之差

注意:当前鼠标hover图片之前时,应该让每道门进行复位

计算公式: images[i].style.left=images[i].style.left-translate

slidedoor滑动门特效

源码下载 请点击 http://pan.baidu.com/s/1mhIOt0O

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-11-20
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-12-13
  • 2022-12-23
  • 2021-11-17
  • 2021-11-22
相关资源
相似解决方案