# Tweener and a large container

**URL:** <https://forum.kirupa.com/t/tweener-and-a-large-container/287352>\
**Category:** Uncategorized\
**Created:** [April 29, 2009, 6:56pm UTC](https://forum.kirupa.com/t/tweener-and-a-large-container/287352 "2009-04-29T18:56:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tztztztz](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@tztztztz](https://forum.kirupa.com/u/tztztztz)\
**Post date:** [April 29, 2009, 6:56pm UTC](https://forum.kirupa.com/t/tweener-and-a-large-container/287352/1 "2009-04-29T18:56:53Z")

</div>

[LEFT]Hi![/LEFT]  
[LEFT]I am working on a gallery:[/LEFT]  
[LEFT]the slider rotates the container with the images using Tweener class and easeOutCubic transition.[/LEFT]  
[LEFT]There are 45+ images around the center of the container[/LEFT]  
[LEFT]

[/LEFT]  
[LEFT]The movement is not smooth, especially when comparing to the way it would be with a small container.[/LEFT]  
[LEFT]Also, and most important - A rough “snap” appears randomly in the end of the motion.[/LEFT]  
[LEFT]  
Link:[/LEFT]  
[LEFT][http://vas1900.nazwa.pl/amilek/tes/Test.swf[/LEFT]](http://vas1900.nazwa.pl/amilek/tes/Test.swf%5B/LEFT%5D)  
[LEFT]  
Code:[/LEFT]  
[LEFT][COLOR=black][FONT=Arial]perc = (100 / (rulerMaxX-rulerStartX)) \* (ruler.x-rulerStartX);  
finalRotation = minRotation + ((maxRotation)/100\*perc);  
Tweener.addTween(mc.inner, {rotation: finalRotation, time:0.3,transition:“easeOutQuad”});

[/FONT][/COLOR][/LEFT]  
[LEFT][COLOR=black][FONT=Arial]Your help will be very appreciated.[/FONT][/COLOR][/LEFT]
