create image slider that shows part of previous and next image
问题 I'm trying to create a slideshow using jQuery (similar to jquery scrollhorz) but I want the previous and next image partly shown. Right now, what I have, is a div (with overflow hidden) containing all the images I have. When previous or next button is pressed, I animate the whole div either to left or right. The problem is, if I have many images loaded into the div, it becomes laggy and slow. What is the best design to implement this image slider? 回答1: Without going into the code required, my