This project is archived and is in readonly mode.

#18 ✓invalid
Thomas Aylott

FX.options.duration can be a function

Reported by Thomas Aylott | May 28th, 2008 @ 10:00 AM | in 2.0 (closed)

Originally posted on Trac by guiguibonbon

Original Trac Ticket

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

Trac Attachments

Trac Comments

Changed 9 months ago by kamicane



                  Changed 9 months ago by kamicane

          priority
              changed from major to minor

          priority
              changed from major to minor
        
      

Changed 9 months ago by ibolmo


        
Will be considered for 1.3's Effects enhancement. 

                  Changed 9 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. 

          milestone
              changed from Mootools version 1.2 to Mootools version 1.3
        
      

Changed 2 weeks ago by tomocchino



                  Changed 2 weeks ago by tomocchino

          owner
            deleted
        
          component
              set to Core
        
          milestone
              set to Mootools version 1.3

          owner
            deleted
        
          component
              set to Core
        
          milestone
              set to Mootools version 1.3
        
      

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages