--- /dev/null
+!function(a,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n(require,exports,module):a.CountUp=n()}(this,function(a,n,t){return function(a,n,t,e,i,r){var u=this;if(u.version=function(){return"1.9.3"},u.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(a,n,t,e){return t*(1-Math.pow(2,-10*a/e))*1024/1023+n},formattingFn:function(a){var n,t,e,i,r,o,s=a<0;if(a=Math.abs(a).toFixed(u.decimals),n=(a+="").split("."),t=n[0],e=1<n.length?u.options.decimal+n[1]:"",u.options.useGrouping){for(i="",r=0,o=t.length;r<o;++r)0!==r&&r%3==0&&(i=u.options.separator+i),i=t[o-r-1]+i;t=i}return u.options.numerals.length&&(t=t.replace(/[0-9]/g,function(a){return u.options.numerals[+a]}),e=e.replace(/[0-9]/g,function(a){return u.options.numerals[+a]})),(s?"-":"")+u.options.prefix+t+e+u.options.suffix},prefix:"",suffix:"",numerals:[]},r&&"object"==typeof r)for(var o in u.options)r.hasOwnProperty(o)&&null!==r[o]&&(u.options[o]=r[o]);""===u.options.separator?u.options.useGrouping=!1:u.options.separator=""+u.options.separator;for(var s=0,l=["webkit","moz","ms","o"],m=0;m<l.length&&!window.requestAnimationFrame;++m)window.requestAnimationFrame=window[l[m]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[l[m]+"CancelAnimationFrame"]||window[l[m]+"CancelRequestAnimationFrame"];function d(a){return"number"==typeof a&&!isNaN(a)}window.requestAnimationFrame||(window.requestAnimationFrame=function(a,n){var t=(new Date).getTime(),e=Math.max(0,16-(t-s)),i=window.setTimeout(function(){a(t+e)},e);return s=t+e,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)}),u.initialize=function(){return!!u.initialized||(u.error="",u.d="string"==typeof a?document.getElementById(a):a,u.d?(u.startVal=Number(n),u.endVal=Number(t),d(u.startVal)&&d(u.endVal)?(u.decimals=Math.max(0,e||0),u.dec=Math.pow(10,u.decimals),u.duration=1e3*Number(i)||2e3,u.countDown=u.startVal>u.endVal,u.frameVal=u.startVal,u.initialized=!0):(u.error="[CountUp] startVal ("+n+") or endVal ("+t+") is not a number",!1)):!(u.error="[CountUp] target is null or undefined"))},u.printValue=function(a){var n=u.options.formattingFn(a);"INPUT"===u.d.tagName?this.d.value=n:"text"===u.d.tagName||"tspan"===u.d.tagName?this.d.textContent=n:this.d.innerHTML=n},u.count=function(a){u.startTime||(u.startTime=a);var n=(u.timestamp=a)-u.startTime;u.remaining=u.duration-n,u.options.useEasing?u.countDown?u.frameVal=u.startVal-u.options.easingFn(n,0,u.startVal-u.endVal,u.duration):u.frameVal=u.options.easingFn(n,u.startVal,u.endVal-u.startVal,u.duration):u.countDown?u.frameVal=u.startVal-(u.startVal-u.endVal)*(n/u.duration):u.frameVal=u.startVal+(u.endVal-u.startVal)*(n/u.duration),u.countDown?u.frameVal=u.frameVal<u.endVal?u.endVal:u.frameVal:u.frameVal=u.frameVal>u.endVal?u.endVal:u.frameVal,u.frameVal=Math.round(u.frameVal*u.dec)/u.dec,u.printValue(u.frameVal),n<u.duration?u.rAF=requestAnimationFrame(u.count):u.callback&&u.callback()},u.start=function(a){u.initialize()&&(u.callback=a,u.rAF=requestAnimationFrame(u.count))},u.pauseResume=function(){u.paused?(u.paused=!1,delete u.startTime,u.duration=u.remaining,u.startVal=u.frameVal,requestAnimationFrame(u.count)):(u.paused=!0,cancelAnimationFrame(u.rAF))},u.reset=function(){u.paused=!1,delete u.startTime,u.initialized=!1,u.initialize()&&(cancelAnimationFrame(u.rAF),u.printValue(u.startVal))},u.update=function(a){u.initialize()&&(d(a=Number(a))?(u.error="",a!==u.frameVal&&(cancelAnimationFrame(u.rAF),u.paused=!1,delete u.startTime,u.startVal=u.frameVal,u.endVal=a,u.countDown=u.startVal>u.endVal,u.rAF=requestAnimationFrame(u.count))):u.error="[CountUp] update() - new endVal is not a number: "+a)},u.initialize()&&u.printValue(u.startVal)}});
\ No newline at end of file
let tl = new TimelineMax();
-tl.from('.img1',1.5,{display: 'none',x: -150,opacity:0});
-tl.from('.img2',1.5,{display: 'none',x: -150,opacity:0},"-=0.9");
-tl.from('.img3',1.5,{display: 'none',x: -150,opacity:0},"-=0.9");
+tl.from('.img1',1.5,{display: 'none',x: -150,opacity:0},'+=4.5');
+tl.from('.img2',1.5,{display: 'none',x: -150,opacity:0},"+=0.3");
+tl.from('.numbers',1,{opacity:0});
+
+
+
+var delay = 8.3;
+
+var id1 = document.getElementById("number1");
+var id2 = document.getElementById("number2");
+var id3 = document.getElementById("number3");
+var id6 = document.getElementById("number6");
+var id4 = document.getElementById("number4");
+var id5 = document.getElementById("number5");
+
+var hidden = 0;
+var visible = 1;
+var dureeOpacite = delay * 1000;
+
+var options = {
+ useEasing: true,
+ useGrouping: true,
+ separator: ',',
+ decimal: '.',
+};
+var number1 = new CountUp('number1', 0, 28, 0, 2.5, options);
+var number2 = new CountUp('number2', 0, 556, 0, 2.5, options);
+var number6 = new CountUp('number6', 0, 2, 0, 2.5, options);
+var number4 = new CountUp('number4', 0, 10, 0, 2.5, options);
+var number5 = new CountUp('number5', 0, 260, 0, 2.5, options);
+var number3 = new CountUp('number3', 0, 11, 0, 2.5, options);
+if (delay > 0){
+ id1.style.opacity = hidden;
+ id2.style.opacity = hidden;
+ id6.style.opacity = hidden;
+ id4.style.opacity = hidden;
+ id5.style.opacity = hidden;
+ id3.style.opacity = hidden;
+ setTimeout(function () {
+ id1.style.opacity = visible;
+ id2.style.opacity = visible;
+ id6.style.opacity = visible;
+ id4.style.opacity = visible;
+ id5.style.opacity = visible;
+ id3.style.opacity = visible;
+ },dureeOpacite );
+}
+function run() {
+ setTimeout(function () {
+ number1.start();
+ number2.start();
+ number6.start();
+ number4.start();
+ number5.start();
+ number3.start();
+ }, delay * 1000);
+}
+run();
{
"version": 3,
-"mappings": "AAAA,CAAC;EACC,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AACZ,OAAO;EACL,OAAO,EAAE,IAAI;EACb,QAAQ,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