Librairie effets javascript

469 mots 2 pages
(function( window ) { var Animate = function(Obj, Property, Duration, Begin, End, CallBack, Type, Speed){ // Property this.domId = Obj; this.cssProperty = Property; this.animationTime = Duration; this.beginning = parseFloat(Begin); this.end = parseFloat(End); this.callBack = CallBack || null; this.type = Type || 'regular'; this.speed = Speed || 25; this.mode = 'break'; var _this = this; this.current = 0; this.intervalId = null; this.stepValue = 0; this.isIe = this.getIeVersion(); // Method this.timerDelegate = function(){ _this.animate(); }; this.callBackDelegate = function(){ _this.runCallBack(); }; this.play = this.Play; this.pause = this.Pause; this.reverse = this.Reverse; } Animate.prototype = { debugMode: true, log: function(e){ try { if (this.debugMode) console.info('Debug >> ' + e); } catch (e) { }; }, Play: function(){ if(this.mode != 'play' && this.mode != 'reverse'){ document.getElementById(this.domId).style[this.cssProperty] = this.beginning + 'px'; this.length = (this.animationTime / this.speed ) - this.current; this.increment = ((this.end - this.beginning) / (this.animationTime / this.speed)); this.current = 0; this.mode = 'play'; this.stepValue = this.beginning; this.intervalId = setInterval(this.timerDelegate, this.speed); } }, Reverse: function(){ if(this.mode != 'play' && this.mode != 'reverse'){ var backup = this.end; this.end =

en relation

  • Animation de bibliotheque
    588 mots | 3 pages
  • Hooraire bus vienne condrieu
    1242 mots | 5 pages
  • Questionnaire parrot
    4726 mots | 19 pages
  • Ligne 1 2014 2
    10337 mots | 42 pages
  • Bibliotheque igauweb
    560 mots | 3 pages
  • La bibliothécaire
    1062 mots | 5 pages
  • Ligne 16 bus
    1422 mots | 6 pages
  • Transmissions réseaux
    1300 mots | 6 pages
  • Projet sur le chevalier double
    9202 mots | 37 pages
  • Attachment 18
    2217 mots | 9 pages
  • Tourbilol
    4158 mots | 17 pages
  • L10S1
    776 mots | 4 pages
  • fiche Tim 5
    903 mots | 4 pages
  • Librairie
    910 mots | 4 pages
  • Horaires Ligne 1
    7928 mots | 32 pages