# Snapping images in a sliding array

**URL:** <https://forum.kirupa.com/t/snapping-images-in-a-sliding-array/325810>\
**Category:** flash\
**Created:** [November 5, 2011, 11:31pm UTC](https://forum.kirupa.com/t/snapping-images-in-a-sliding-array/325810 "2011-11-05T23:31:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NyteStarNyne](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@NyteStarNyne](https://forum.kirupa.com/u/NyteStarNyne)\
**Post date:** [November 5, 2011, 11:31pm UTC](https://forum.kirupa.com/t/snapping-images-in-a-sliding-array/325810/1 "2011-11-05T23:31:46Z")

</div>

Hello all,

I’m trying to make a gallery where the user can move the cursor to the left and right to have the images slide in that direction. I also want to have the image that’s in focus snap to the screen after about 2-3 seconds of the cursor staying around the center. I would be grateful if anyone knew how I could go about this. :love:

Here’s a rough image of what I mean:
