public
Fork of madrobby/scripty2
Description: This is the alpha version of script.aculo.us 2, lovingly called "scripty2".
Homepage: http://script.aculo.us/2
Clone URL: git://github.com/kommen/scripty2.git
Search Repo:
Add an Effect.Parallel

Usage:

  var effects = [
    new Effect.Morph(el1, { style: otherstyle1 }),
    new Effect.Morph(el2, { style: otherstyle2})
  ];

  new Effect.Parallel(effects, { duration: 0.5 }).play();
kommen (author)
Mon May 05 07:01:41 -0700 2008
commit  20957e54d8f1c119973d0a961695dd4a659aff51
tree    6e7cd4dba6d0e1717d51828a7506abafcdf4e31f
parent  eeae6267aab5de837c6804738fc0d6e6f3ce6236
...
44
45
46
 
47
48
49
...
44
45
46
47
48
49
50
0
@@ -44,6 +44,7 @@ task :package do |t|
0
   src/effects/style.js
0
   src/effects/morph.js
0
   src/effects/scroll.js
0
+ src/effects/parallel.js
0
   src/transitions/transitions.js
0
   src/transitions/penner.js)
0
   FileUtils.mkdir('dist') unless File.exists?('dist')
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
@@ -0,0 +1,14 @@
0
+Effect.Parallel = Class.create(Effect.Base, {
0
+ initialize: function($super, effects, options) {
0
+ this.effects = effects || [];
0
+ return $super(options);
0
+ },
0
+
0
+ setup: function() {
0
+ this.effects.invoke('setup');
0
+ },
0
+
0
+ update: function(position) {
0
+ this.effects.invoke('update', position);
0
+ }
0
+});
0
\ No newline at end of file

Comments

    No one has commented yet.