Some do not know, maybe, but you can overwrite or add transitions effects scriptaculous.js very easily and quickly. Scriptaculous transitions, effects used in determining the type of animation, such as those are not implemented in Flash (I recommend a look at this PDF of the great Robert Penner ), but the effect is - in fact - the same . In addition, in the package Scriptaculous, are not present some transitions basis present invence in Actionscript. If we wanted to add a new transition to Scriptaculous just insert this code before using any effect:
1 2 3 | = function ( pos ) { Effect. Transitions. Exponential = function (pos) { - Math. pow ( 1 - pos , 2 ) ; return 1 - Math. pow (1 - pos, 2); } |
From this moment onwards we can use the new transition exponential in all the effects of Scriptaculous. For a useful series of transitions - almost a porting to Actionscript Scriptaculous - see Add some spice to Scriptaculous .










There are no comments for this post
Leave a comment