3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

Anybody knows how to change Tweener’s default transition type? The default one is “easeOutExpo” i think, but i want it to be the “linear” one, because that is how it should be :) I just started using tweener and it’s a little bit frustrating to change the transition type for almost every tween.. Does anybody who uses tweener know how to do that?

245 posts
  • Beta Tester
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
enhancedmedia says

yeah just replace the words easeOutExpo with linear, if you have quite a few to change, just press ctrl F, and use the find and replace feature so you can skip through them all in no time. hope that helps

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

The default syntax is this : Tweener.addTween(mc,{_x:0,time:2})
To make a linear transition you have to use this : Tweener.addTween(mc,{_x:0,time2,transition:”linear”})

So there is extra typing in there and i want to get rid of it :D Thanks for your reply though

2485 posts Premium Scripts, Plugins and Themes
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
+1 more
LucidStudios says

you have to change the Tweener class itself. I think line 162 is the required line you have to change. if (!Boolean(rTransition)) rTransition = _transitionList[“easeoutexpo”];

to:

if (!Boolean(rTransition)) rTransition = _transitionList[“linear”];

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

Thanks Saafi
It was line 181 in my class and the syntax was a little bit different but it worked :)

1605 posts Building the Web.
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
+2 more
ZoomIt says

This thread has been useful to me in a project. Thanks enhanced
one curiosity: why is easeOutSine slower then easeOutExpo :D ?

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says
1605 posts Building the Web.
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
+2 more
ZoomIt says

yes, I know, lol
But when I change the transition type to easeOutSine and leave the time unchanged it seems so much slower :D

edit: nevermind, I get it now thanks

by
by
by
by
by
by