in partnership with mediatemple

Ticket #444 (new enhancement)

Opened 8 months ago

Last modified 2 days ago

FX.options.duration can be a function

Reported by: guiguibonbon Owned by:
Type: enhancement Priority: minor
Milestone: Mootools version 1.3 Component: Core
Keywords: duration, speed Cc:

Description

Sorry, don't know how to submit a patch.

        start: function(from, to){
 	                if (!this.options.wait) this.stop();
 	                else if (this.timer) return this;
 	                this.from = from;
 	                this.to = to;
 	                this.change = this.to - this.from;
 	                if (typeof this.options.duration == "function")
 	                    this.options.duration = this.options.duration(this.change, this.from, this.to);
 	                this.timer = this.step.periodical(Math.round(1000 / this.options.fps), this);
 	                this.fireEvent('onStart', this.element);
 	                return this;
 	        },

forum thread

Change History

Changed 8 months ago by kamicane

  • priority changed from major to minor

Changed 8 months ago by ibolmo

  • milestone changed from Mootools version 1.2 to Mootools version 1.3

Will be considered for 1.3's Effects enhancement.

Changed 2 days ago by tomocchino

  • owner deleted
  • component set to Core
  • milestone set to Mootools version 1.3
Note: See TracTickets for help on using tickets.