PageSourceSearch

https://codelamp.co.uk/js/tween.js?build=BUILDTOKEN

js codelamp.co.uk collected 2026-10-04 13:34:29 UTC 2,832 bytes, 1 lines download raw bytes

1(function(e){var t={linear:function(e,t,n,r){return n*e/r+t},quadIn:function(e,t,n,r){return e/=r,n*e*e+t},quadOut:function(e,t,n,r){return e/=r,-n*e*(e-2)+t},quadInOut:function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)},cubeIn:function(e,t,n,r){return e/=r,n*e*e*e+t},cubeOut:function(e,t,n,r){return e/=r,e--,n*(e*e*e+1)+t},cubeInOut:function(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e+t:(e-=2,n/2*(e*e*e+2)+t)},quartIn:function(e,t,n,r){return e/=r,n*e*e*e*e+t},quartOut:function(e,t,n,r){return e/=r,e--,-n*(e*e*e*e-1)+t},quartInOut:function(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e*e+t:(e-=2,-n/2*(e*e*e*e-2)+t)},quintIn:function(e,t,n,r){return e/=r,n*e*e*e*e*e+t},quintOut:function(e,t,n,r){return e/=r,e--,n*(e*e*e*e*e+1)+t},quintInOut:function(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e*e*e+t:(e-=2,n/2*(e*e*e*e*e+2)+t)},sineIn:function(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t},sineOut:function(e,t,n,r){return n*Math.sin(e/r*(Math.PI/2))+t},sineInOut:function(e,t,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+t},expoIn:function(e,t,n,r){return n*Math.pow(2,10*(e/r-1))+t},expoOut:function(e,t,n,r){return n*(-Math.pow(2,-10*e/r)+1)+t},expoInOut:function(e,t,n,r){return e/=r/2,e<1?n/2*Math.pow(2,10*(e-1))+t:(e--,n/2*(-Math.pow(2,-10*e)+2)+t)},circIn:function(e,t,n,r){return e/=r,-n*(Math.sqrt(1-e*e)-1)+t},circOut:function(e,t,n,r){return e/=r,e--,n*Math.sqrt(1-e*e)+t},circInOut:function(e,t,n,r){return e/=r/2,e<1?-n/2*(Math.sqrt(1-e*e)-1)+t:(e-=2,n/2*(Math.sqrt(1-e*e)+1)+t)}},n={round:function(e){return Math.round(e*100)/100}};e.Tween=function(e,t,n,r,i){return this.startTime=Date.now(),this.startValue=e,this.distance=t,this.duration=n,this.animationType=r,this.loop=i,this},e.Tween.prototype.getValue=function(){if(!this.expired())var e=t[this.animationType](Date.now()-this.startTime,this.startValue,this.distance,this.duration);else if(!this.loop)var e=this.startValue+this.distance;else if(this.loop==="repeat"){this.startTime=Date.now();var e=t[this.animationType](Date.now()-this.startTime,this.startValue,this.distance,this.duration)}else{this.startValue=this.startValue+this.distance,this.distance=-this.distance,this.startTime=Date.now();var e=t[this.animationType](Date.now()-this.startTime,this.startValue,this.distance,this.duration)}return n.round(e)},e.Tween.prototype.getStartTime=function(){return Date.now()-this.startTime-this.duration+Date.now()},e.Tween.prototype.expired=function(){return this.startTime+this.duration<Date.now()},e.Tween.prototype.set=function(e,t,n,r,i){return this.startValue=typeof e=="number"?e:this.startValue,this.distance=typeof t=="number"?t:this.distance,this.duration=typeof n=="number"?n:this.duration,this.animationType=r||this.animationType,this.loop=i||this.loop,this},e.Tween.prototype.reset=function(){return this.startTime=Date.now(),this}})(window)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.