Slide menu icons?

I’m creating a level selection menu, and it’s working great atm.
When i swipe left or right the level to be played changes.
But is there a way to get it animated without using an animation.

i would like to see the level icon to slide left or right, and the next icon sliding in.

im currently using

//not a straight reference from code, just to give you the main point

var mapicon1 : gameobject

var mapicon2 : gameobject

static var counter = 1;

if counter = 1

mapicon1 position = 0

mapicon2 position = 1

if counter = 2

mapicon1 position = 1

mapicon2 position = 0

and the counter is changed by swiping left or right.
So my question is. Is there anyway to get the icons move like an animation,
but not actually using an animation?

Sure it’s possible, check out Lerp, and lerp between the two positions when you need to, that will cause them to smoothly move to where its going.