# Spring effect on my tab menu : how?

**URL:** <https://forum.kirupa.com/t/spring-effect-on-my-tab-menu-how/140373>\
**Category:** Uncategorized\
**Created:** [March 10, 2005, 3:14pm UTC](https://forum.kirupa.com/t/spring-effect-on-my-tab-menu-how/140373 "2005-03-10T15:14:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![5TEF](https://avatars.discourse-cdn.com/v4/letter/5/85e7bf/32.png) [@5TEF](https://forum.kirupa.com/u/5TEF)\
**Post date:** [March 10, 2005, 3:14pm UTC](https://forum.kirupa.com/t/spring-effect-on-my-tab-menu-how/140373/1 "2005-03-10T15:14:19Z")

</div>

hi,

for a multiple horizontal tab menu, i developpe a function  
to move my tab up and down, when my cursor rollover it.

here my as code :

\*function scrolling(nom, coord, coef) {  
nom.onEnterFrame = function() {  
this.\_y -= (coord+this.\_y)\*coef;  
if (this.\_y == coord) {  
delete this.onEnterFrame;  
}  
};  
}

\*i want to add a cool spring effect, when my tab scroll up and scroll down…but how can i make this effect ?

Thanks.
