From: nael Date: Wed, 19 Dec 2018 09:43:06 +0000 (+0100) Subject: wait #2384 @4 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0f2d1adfede430f92a6e12d8e01a4cc7d7acd100;p=Animations.git wait #2384 @4 --- diff --git a/AccorHotel-p12-13/TimelineMax.min.js b/AccorHotel-p12-13/TimelineMax.min.js new file mode 100644 index 0000000..46e7d7f --- /dev/null +++ b/AccorHotel-p12-13/TimelineMax.min.js @@ -0,0 +1,12 @@ +/*! + * VERSION: 2.0.2 + * DATE: 2018-08-27 + * UPDATES AND DOCS AT: http://greensock.com + * + * @license Copyright (c) 2008-2018, GreenSock. All rights reserved. + * This work is subject to the terms at http://greensock.com/standard-license or for + * Club GreenSock members, the software agreement that was issued with your membership. + * + * @author: Jack Doyle, jack@greensock.com + */ +var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="2.0.2",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time===f.target.time()||d!==f.duration()||f.isFromTo||f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale).render(f.time(),!0,!0),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.isFromTo=1,d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._time,p=this._dirty?this.totalDuration():this._totalDuration,q=this._duration,r=this._totalTime,s=this._startTime,t=this._timeScale,u=this._rawPrevTime,v=this._paused,w=this._cycle;if(o!==this._time&&(a+=this._time-o),a>=p-1e-7&&a>=0)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(f=!0,j="onComplete",k=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=q,a=q+1e-4);else if(1e-7>a)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==o||0===q&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(k=f=!0,j="onReverseComplete"):u>=0&&this._first&&(k=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=q||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===q&&0>u&&(k=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(l=q+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=q-this._time),this._time>q?(this._time=q,a=q+1e-4):this._time<0?this._time=a=0:a=this._time)),this._hasPause&&!this._forcingPlayhead&&!b){if(a=this._time,a>=o||this._repeat&&w!==this._cycle)for(d=this._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(m=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&m._startTime0&&(this._active=!0),0===r&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||b||this._callback("onStart")),n=this._time,n>=o)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._startTime<=o&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>this._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}this._onUpdate&&(b||(g.length&&h(),this._callback("onUpdate"))),j&&(this._locked||this._gc||(s===this._startTime||t!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(f&&(g.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].timethis._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8)},d},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="2.0.2",q.constructor=d,q.kill()._gc=q._forcingPlayhead=q._hasPause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,d),e)},q.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},q.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;of&&(e=1),i.add(g,f)),g=h;return j.add(i,0),e&&i.totalDuration(),i},q.add=function(e,f,g,h){var j,k,l,m,n,o;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),e._time&&(j=Math.max(0,Math.min(e.totalDuration(),(this.rawTime()-e._startTime)*e._timeScale)),Math.abs(j-e._totalTime)>1e-5&&e.render(j,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},q.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},q.insert=q.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},q.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},q.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},q.removeLabel=function(a){return delete this._labels[a],this},q.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parseTimeOrLabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f="number"!=typeof b||c?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexOf("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseInt(b.charAt(g-1)+"1",10)*Number(b.substr(g+1)),b=g>1?this._parseTimeOrLabel(b.substr(0,g-1),0,d):f}return Number(b)+c},q.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoAndPlay=function(a,b){return this.play(a,b)},q.gotoAndStop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._time,o=this._dirty?this.totalDuration():this._totalDuration,p=this._startTime,q=this._timeScale,r=this._paused;if(n!==this._time&&(a+=this._time-n),a>=o-1e-7&&a>=0)this._totalTime=this._time=o,this._reversed||this._hasPausedChild()||(f=!0,h="onComplete",i=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(i=!0,this._rawPrevTime>e&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=o+1e-4;else if(1e-7>a)if(this._totalTime=this._time=0,(0!==n||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(h="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(i=f=!0,h="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(i=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!b){if(a>=n)for(d=this._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(l=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(this._time=a=l._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=a}if(this._time!==n&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==n&&a>0&&(this._active=!0),0===n&&this.vars.onStart&&(0===this._time&&this._duration||b||this._callback("onStart")),m=this._time,m>=n)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._startTime<=n&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}this._onUpdate&&(b||(j.length&&k(),this._callback("onUpdate"))),h&&(this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||o>=this.totalDuration())&&(f&&(j.length&&k(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},q.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},q.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(e,e._startTime-e._delay),this._calculatingDuration=0):f=e._startTime,e._startTime<0&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale,this._time-=e._startTime,this._totalTime-=e._startTime,this._rawPrevTime-=e._startTime),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._startTime===d&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},q.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("./TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("TimelineMax"); \ No newline at end of file diff --git a/AccorHotel-p12-13/countUp.min.js b/AccorHotel-p12-13/countUp.min.js new file mode 100644 index 0000000..c17c47b --- /dev/null +++ b/AccorHotel-p12-13/countUp.min.js @@ -0,0 +1 @@ +!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=1u.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.frameValu.endVal?u.endVal:u.frameVal,u.frameVal=Math.round(u.frameVal*u.dec)/u.dec,u.printValue(u.frameVal),nu.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 diff --git a/AccorHotel-p12-13/gotham-bold.woff b/AccorHotel-p12-13/gotham-bold.woff new file mode 100644 index 0000000..3ba9f64 Binary files /dev/null and b/AccorHotel-p12-13/gotham-bold.woff differ diff --git a/AccorHotel-p12-13/gotham-htf-medium.woff b/AccorHotel-p12-13/gotham-htf-medium.woff new file mode 100644 index 0000000..213a928 Binary files /dev/null and b/AccorHotel-p12-13/gotham-htf-medium.woff differ diff --git a/AccorHotel-p12-13/gothamhtf-book.woff b/AccorHotel-p12-13/gothamhtf-book.woff new file mode 100644 index 0000000..d028b51 Binary files /dev/null and b/AccorHotel-p12-13/gothamhtf-book.woff differ diff --git a/AccorHotel-p12-13/index.html b/AccorHotel-p12-13/index.html index 68af30a..81443f3 100644 --- a/AccorHotel-p12-13/index.html +++ b/AccorHotel-p12-13/index.html @@ -1 +1,63 @@ -
\ No newline at end of file + + + + + + +
+ + + + + + + + + +
+ +
+

AccorHotels,
+ a worldwide
hotel operator

+
+
+ More than + 4,500 + hotels +
+
+ More than + 650,000 + rooms +
+
+ 100 + countries +
+
+ 30 + hospitality brands +
+
+ +
+ 250,000 + employees +
+
+ +
+ 1 HOTEL OPENED
EVERY 33 HOURS
+
+
+ +
+ +
+ + + + + + + \ No newline at end of file diff --git a/AccorHotel-p12-13/main.css b/AccorHotel-p12-13/main.css index c0a2ac7..8255694 100644 --- a/AccorHotel-p12-13/main.css +++ b/AccorHotel-p12-13/main.css @@ -13,4 +13,209 @@ #p15-imageholder-1 { transform-origin: 0% 50%; } +#canvas { + display: none; + position: absolute; +} +@font-face { + font-family: Gotham-Bold; + src: url("gotham-bold.woff"); +} +@font-face { + font-family: GothamHTF-Book; + src: url("gothamhtf-book.woff"); +} +@font-face { + font-family: GothamHTF-medium; + src: url("gotham-htf-medium.woff"); +} +@font-face { + font-family: DalaFloda; + src: url("DalaFloda.woff"); +} +#number1, +#number2, +#number3, +#number4, +#number5 { + opacity: 1; +} +.number { + opacity: 0!important; +} +.title { + color: #e4a014; + font-family: DalaFloda; + position: absolute; + left: -560px; + top: 471px; + font-size: 38px; + letter-spacing: -0.5px; + line-height: 35px; +} +.line1 { + position: absolute; + background: #002941; + width: 221px; + height: 1px; + left: -560px; + top: 592px; +} +.contentline { + position: relative; +} +.txt1 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -554px; + top: -241px; + font-size: 8px; +} +.number1 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -511px; + top: -251px; + font-size: 19px; + letter-spacing: -0.7px; +} +.txt2 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -450px; + top: -241px; + font-size: 8px; +} +/********************* content 2*******************************/ +.contentline2 { + position: relative; +} +.txt3 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -554px; + top: -211px; + font-size: 8px; +} +.number2 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -511px; + top: -221px; + font-size: 19px; + letter-spacing: -0.7px; +} +.txt4 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -425px; + top: -211px; + font-size: 8px; +} +/********************* content 3*******************************/ +.contentline3 { + position: relative; +} +.txt5 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -515px; + top: -181px; + font-size: 8px; +} +.number3 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -554px; + top: -191px; + font-size: 18px; +} +/********************* content 4*******************************/ +.contentline4 { + position: relative; +} +.txt6 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -525px; + top: -152px; + font-size: 8px; + letter-spacing: 0.2px; +} +.number4 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -554px; + top: -161px; + font-size: 18px; +} +.line2 { + position: absolute; + background: #002941; + width: 221px; + height: 1px; + left: -560px; + top: 716px; +} +/*************************** content 5 ****************************/ +.contentline5 { + position: relative; +} +.txt7 { + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -470px; + top: -120px; + font-size: 8px; + letter-spacing: 0.2px; +} +.number5 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -555px; + top: -129px; + font-size: 18px; +} +.line3 { + position: absolute; + background: #002941; + width: 221px; + height: 1px; + left: -560px; + top: 749px; +} +/*************************** content 6 ****************************/ +.contentline6 { + position: relative; +} +.txt8 { + position: absolute; + font-family: Gotham-Bold; + color: #e4a014; + left: -555px; + top: -93px; + font-size: 12.5px; + letter-spacing: 0.3px; + line-height: 15px; +} +.line4 { + position: absolute; + background: #002941; + width: 221px; + height: 1px; + left: -560px; + top: 795px; +} /*# sourceMappingURL=main.css.map */ \ No newline at end of file diff --git a/AccorHotel-p12-13/main.css.map b/AccorHotel-p12-13/main.css.map index b607bfa..692f431 100644 --- a/AccorHotel-p12-13/main.css.map +++ b/AccorHotel-p12-13/main.css.map @@ -1 +1 @@ -{"version":3,"sources":["main.less"],"names":[],"mappings":"AACA;AAAmB;EAClB,yBAAA;EACA,WAAW,QAAX;;AACA,kBAAC;AAAD,kBAAC;EACA,WAAW,UAAX;;AAGF;EACC,0BAAA;;AAGD;EACC,wBAAA","file":"main.css"} \ No newline at end of file +{"version":3,"sources":["main.less"],"names":[],"mappings":"AACA;AAAmB;EAClB,yBAAA;EACA,WAAW,QAAX;;AACA,kBAAC;AAAD,kBAAC;EACA,WAAW,UAAX;;AAGF;EACC,0BAAA;;AAGD;EACC,wBAAA;;AAGD;EACC,aAAA;EACA,kBAAA;;AAED;EACC,wBAAA;EACA,SAAS,mBAAT;;AAED;EACC,2BAAA;EACA,SAAS,sBAAT;;AAED;EACC,6BAAA;EACA,SAAS,yBAAT;;AAED;EACE,sBAAA;EACA,SAAS,iBAAT;;AAKF;AAAU;AAAS;AAAS;AAAS;EACnC,UAAA;;AAEF;EACE,oBAAA;;AAEF;EACE,cAAA;EACA,sBAAA;EACA,kBAAA;EACA,YAAA;EACA,UAAA;EACA,eAAA;EACA,sBAAA;EACA,iBAAA;;AAEF;EACE,kBAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA;;AAEF;EACE,kBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;;AAEF;EACE,kBAAA;EACA,wBAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,sBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;;;AAGF;EACE,kBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;;AAEF;EACE,kBAAA;EACA,wBAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,sBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;;;AAGF;EACE,kBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;;AAEF;EACE,kBAAA;EACA,wBAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;;;AAGF;EACE,kBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;EACA,qBAAA;;AAEF;EACE,kBAAA;EACA,wBAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;;AAEF;EACE,kBAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA;;;AAGF;EACE,kBAAA;;AAEF;EACE,kBAAA;EACA,2BAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;EACA,qBAAA;;AAEF;EACE,kBAAA;EACA,wBAAA;EACA,cAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;;AAEF;EACE,kBAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA;;;AAGF;EACE,kBAAA;;AAEF;EACE,kBAAA;EACA,wBAAA;EACA,cAAA;EACA,YAAA;EACA,UAAA;EACA,iBAAA;EACA,qBAAA;EACA,iBAAA;;AAEF;EACE,kBAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA","file":"main.css"} \ No newline at end of file diff --git a/AccorHotel-p12-13/main.js b/AccorHotel-p12-13/main.js index 2ce4493..fdc477d 100644 --- a/AccorHotel-p12-13/main.js +++ b/AccorHotel-p12-13/main.js @@ -1,8 +1,8 @@ $(function () { - setTimeout(start, 1000); + setTimeout(startContinents, 1000); }); -function start() { +function startContinents() { $('body').css('opacity', 1); $("#p15-imageholder-1,#p14-imageholder-1").addClass('animate'); @@ -43,13 +43,13 @@ function start() { "transition": "right", "area": "#p15-u-393,#p15-u-394,#p15-u-395,#p15-u-396,#p15-u-397,#p15-u-398,#p15-u-399,#p15-u-400,#p15-u-401,#p15-u-402,#p15-u-403,#p15-u-404,#p15-u-405,#p15-u-406,#p15-u-407,#p15-u-408,#p15-u-409,#p15-u-410,#p15-u-411,#p15-u-412,#p15-u-413,#p15-u-414,#p15-u-415,#p15-u-416,#p15-u-417,#p15-u-418,#p15-u-419,#p15-u-420,#p15-u-421,#p15-u-422,#p15-u-423,#p15-u-424,#p15-u-425,#p15-u-426,#p15-u-427,#p15-u-428,#p15-u-429,#p15-u-430,#p15-u-431,#p15-u-432,#p15-u-433,#p15-u-434,#p15-u-435,#p15-u-436,#p15-u-437,#p15-u-438,#p15-u-439" }, - "GL": { - "delay": 6*m, - "transition": "left", - "area": "#p14-u-1,#p14-u-2,#p14-u-3,#p14-u-4,#p14-u-5,#p14-u-6,#p14-u-7,#p14-u-8,#p14-u-9,#p14-u-10,#p14-u-11,#p14-u-12,#p14-u-13,#p14-u-14,#p14-u-15,#p14-u-16,#p14-u-17,#p14-u-18,#p14-u-19,#p14-u-20,#p14-u-21,#p14-u-22,#p14-u-23,#p14-u-24,#p14-u-25,#p14-u-26,#p14-u-27,#p14-u-28,#p14-u-29,#p14-u-30,#p14-u-31,#p14-u-32,#p14-u-33,#p14-u-34,#p14-u-35,#p14-u-36,#p14-u-37,#p14-e-129,#p14-e-130,#p14-e-131,#p14-e-132,#p14-u-46,#p14-u-47,#p14-u-48,#p14-u-49,#p14-u-50,#p14-u-51,#p14-u-52,#p14-u-53,#p14-u-54,#p14-u-55,#p14-u-56,#p14-u-57,#p14-u-58,#p14-u-59,#p14-u-60,#p14-u-61,#p14-u-62,#p14-u-63,#p14-u-64,#p14-u-65,#p14-u-66,#p14-u-67,#p14-u-68,#p14-u-69,#p14-u-70,#p14-u-71,#p14-u-72,#p14-u-73,#p14-u-74,#p14-u-75,#p14-u-76,#p14-u-77,#p14-u-78,#p14-u-79,#p14-u-80,#p14-u-81,#p14-u-82,#p14-u-83,#p14-u-84,#p14-u-85,#p14-u-86,#p14-u-87,#p14-u-88,#p14-u-89,#p14-u-90,#p14-u-91,#p14-u-92,#p14-u-93,#p14-u-94,#p14-u-95,#p14-u-96,#p14-u-97,#p14-u-98,#p14-u-99,#p14-u-100,#p14-u-101,#p14-u-102,#p14-u-103,#p14-u-104,#p14-u-105,#p14-u-106,#p14-u-107,#p14-u-108,#p14-u-109,#p14-u-110,#p14-u-111,#p14-u-112,#p14-u-113,#p14-u-114,#p14-u-115,#p14-u-116,#p14-u-117,#p14-u-118,#p14-u-119,#p14-u-120,#p14-u-121,#p14-u-122,#p14-u-123,#p14-u-124,#p14-u-125,#p14-u-126,#p14-u-127,#p14-u-128,#p14-u-129,#p14-u-130,#p14-u-131,#p14-u-132,#p14-u-133,#p14-u-134,#p14-u-135,#p14-u-136,#p14-u-137,#p14-u-138,#p14-u-139,#p14-u-140,#p14-u-141,#p14-u-142,#p14-u-143,#p14-u-144,#p14-u-145,#p14-u-146,#p14-u-147,#p14-u-148,#p14-u-149,#p14-u-150,#p14-u-151,#p14-u-152,#p14-u-153,#p14-u-154,#p14-u-155,#p14-u-156,#p14-u-157,#p14-u-158,#p14-u-159,#p14-u-160,#p14-u-161,#p14-u-162,#p14-u-163,#p14-u-164,#p14-u-165,#p14-u-166,#p14-u-167,#p14-u-168,#p14-u-169,#p14-u-170" - }, + // "GL": { + // "delay": 6*m, + // "transition": "left", + // "area": "#p14-u-1,#p14-u-2,#p14-u-3,#p14-u-4,#p14-u-5,#p14-u-6,#p14-u-7,#p14-u-8,#p14-u-9,#p14-u-10,#p14-u-11,#p14-u-12,#p14-u-13,#p14-u-14,#p14-u-15,#p14-u-16,#p14-u-17,#p14-u-18,#p14-u-19,#p14-u-20,#p14-u-21,#p14-u-22,#p14-u-23,#p14-u-24,#p14-u-25,#p14-u-26,#p14-u-27,#p14-u-28,#p14-u-29,#p14-u-30,#p14-u-31,#p14-u-32,#p14-u-33,#p14-u-34,#p14-u-35,#p14-u-36,#p14-u-37,#p14-e-129,#p14-e-130,#p14-e-131,#p14-e-132,#p14-u-46,#p14-u-47,#p14-u-48,#p14-u-49,#p14-u-50,#p14-u-51,#p14-u-52,#p14-u-53,#p14-u-54,#p14-u-55,#p14-u-56,#p14-u-57,#p14-u-58,#p14-u-59,#p14-u-60,#p14-u-61,#p14-u-62,#p14-u-63,#p14-u-64,#p14-u-65,#p14-u-66,#p14-u-67,#p14-u-68,#p14-u-69,#p14-u-70,#p14-u-71,#p14-u-72,#p14-u-73,#p14-u-74,#p14-u-75,#p14-u-76,#p14-u-77,#p14-u-78,#p14-u-79,#p14-u-80,#p14-u-81,#p14-u-82,#p14-u-83,#p14-u-84,#p14-u-85,#p14-u-86,#p14-u-87,#p14-u-88,#p14-u-89,#p14-u-90,#p14-u-91,#p14-u-92,#p14-u-93,#p14-u-94,#p14-u-95,#p14-u-96,#p14-u-97,#p14-u-98,#p14-u-99,#p14-u-100,#p14-u-101,#p14-u-102,#p14-u-103,#p14-u-104,#p14-u-105,#p14-u-106,#p14-u-107,#p14-u-108,#p14-u-109,#p14-u-110,#p14-u-111,#p14-u-112,#p14-u-113,#p14-u-114,#p14-u-115,#p14-u-116,#p14-u-117,#p14-u-118,#p14-u-119,#p14-u-120,#p14-u-121,#p14-u-122,#p14-u-123,#p14-u-124,#p14-u-125,#p14-u-126,#p14-u-127,#p14-u-128,#p14-u-129,#p14-u-130,#p14-u-131,#p14-u-132,#p14-u-133,#p14-u-134,#p14-u-135,#p14-u-136,#p14-u-137,#p14-u-138,#p14-u-139,#p14-u-140,#p14-u-141,#p14-u-142,#p14-u-143,#p14-u-144,#p14-u-145,#p14-u-146,#p14-u-147,#p14-u-148,#p14-u-149,#p14-u-150,#p14-u-151,#p14-u-152,#p14-u-153,#p14-u-154,#p14-u-155,#p14-u-156,#p14-u-157,#p14-u-158,#p14-u-159,#p14-u-160,#p14-u-161,#p14-u-162,#p14-u-163,#p14-u-164,#p14-u-165,#p14-u-166,#p14-u-167,#p14-u-168,#p14-u-169,#p14-u-170" + // }, "description": { - "delay": 7*m, + "delay": 24*m, "transition": "opacity", "area": "#p15-u-1,#p15-u-2,#p15-u-3,#p15-u-4,#p15-u-5,#p15-u-6,#p15-u-7,#p15-u-8,#p15-u-9,#p15-u-10,#p15-u-11,#p15-u-12,#p15-u-13,#p15-u-14,#p15-u-15,#p15-u-16,#p15-u-17,#p15-u-18,#p15-u-19,#p15-u-20,#p15-u-21,#p15-u-22,#p15-u-23,#p15-u-24,#p15-u-25,#p15-u-26,#p15-u-27,#p15-u-28,#p15-u-29,#p15-u-30,#p15-u-31,#p15-u-32,#p15-u-33,#p15-u-34,#p15-u-35,#p15-u-36,#p15-u-37,#p15-u-38,#p15-u-39,#p15-u-40,#p15-u-41,#p15-u-42,#p15-u-43,#p15-u-44,#p15-u-45,#p15-u-46,#p15-u-47,#p15-u-48,#p15-u-49,#p15-u-50,#p15-u-51,#p15-u-52,#p15-u-53,#p15-u-54,#p15-u-55,#p15-u-56,#p15-u-57,#p15-u-58,#p15-u-59,#p15-u-60,#p15-u-61,#p15-u-62,#p15-u-63,#p15-u-64,#p15-u-65,#p15-u-66,#p15-u-67,#p15-u-68,#p15-u-69,#p15-u-70,#p15-u-71,#p15-u-72,#p15-u-73,#p15-u-74,#p15-u-75,#p15-u-76,#p15-u-77,#p15-u-78,#p15-u-79,#p15-u-80,#p15-u-81,#p15-u-82,#p15-u-83,#p15-u-84,#p15-u-85,#p15-u-86,#p15-u-87,#p15-u-88,#p15-u-89,#p15-u-90,#p15-u-91,#p15-u-92,#p15-u-93,#p15-u-94,#p15-u-95,#p15-u-96,#p15-u-97,#p15-u-98,#p15-u-99,#p15-u-100,#p15-u-101,#p15-u-102,#p15-u-103,#p15-u-104,#p15-u-105,#p15-u-106,#p15-u-107,#p15-u-108,#p15-u-109,#p15-u-110,#p15-u-111,#p15-u-112,#p15-u-113,#p15-u-114,#p15-u-115,#p15-u-116,#p15-u-117,#p15-u-118,#p15-u-119,#p15-u-120,#p15-u-121,#p15-u-122,#p15-u-123,#p15-u-124,#p15-u-125,#p15-u-126,#p15-u-127,#p15-u-128,#p15-u-129,#p15-u-130,#p15-u-131,#p15-u-132,#p15-u-133,#p15-u-134,#p15-u-135,#p15-u-136,#p15-u-137,#p15-u-138,#p15-u-139,#p15-u-140,#p15-u-141,#p15-u-142,#p15-u-143,#p15-u-144,#p15-u-145,#p15-u-146,#p15-u-147,#p15-u-148,#p15-u-149,#p15-u-150,#p15-u-151,#p15-u-152,#p15-u-153,#p15-u-154,#p15-u-155,#p15-u-156,#p15-u-157,#p15-u-158,#p15-u-159,#p15-u-160,#p15-u-161,#p15-u-162,#p15-u-163,#p15-u-164,#p15-u-165,#p15-u-166,#p15-u-167,#p15-u-168,#p15-u-169,#p15-u-170,#p15-u-171,#p15-u-172,#p15-u-173,#p15-u-174,#p15-u-175,#p15-u-176,#p15-u-177,#p15-u-178,#p15-u-179,#p15-u-180,#p15-u-181,#p15-u-182,#p15-u-183,#p15-u-184,#p15-u-185,#p15-u-186,#p15-u-187,#p15-u-188,#p15-u-189,#p15-u-190,#p15-u-191,#p15-u-192,#p15-u-193,#p15-u-194,#p15-u-195,#p15-u-196,#p15-u-197,#p15-u-198,#p15-u-199,#p15-u-200,#p15-u-201,#p15-u-202,#p15-u-203,#p15-u-204,#p15-u-205,#p15-u-206,#p15-u-207,#p15-u-208,#p15-u-209,#p15-u-210,#p15-u-211,#p15-u-212,#p15-u-213,#p15-u-214,#p15-u-215,#p15-u-216,#p15-u-217,#p15-u-218,#p15-u-219,#p15-u-220,#p15-u-221,#p15-u-222,#p15-u-223,#p15-u-224,#p15-u-225,#p15-u-226,#p15-u-227,#p15-u-228,#p15-u-229,#p15-u-230,#p15-u-231,#p15-u-232,#p15-u-233,#p15-u-234,#p15-u-235,#p15-u-236,#p15-u-237,#p15-u-238,#p15-u-239,#p15-u-240,#p15-u-241,#p15-u-242,#p15-u-243,#p15-u-244,#p15-u-245,#p15-u-246,#p15-u-247,#p15-u-248,#p15-u-249,#p15-u-250,#p15-u-251,#p15-u-252,#p15-u-253,#p15-u-254,#p15-u-255,#p15-u-256,#p15-u-257,#p15-u-258,#p15-u-259,#p15-u-260,#p15-u-261,#p15-u-262,#p15-u-263,#p15-u-264,#p15-u-265,#p15-u-266,#p15-u-267,#p15-u-268,#p15-u-269,#p15-u-270,#p15-u-271,#p15-u-272,#p15-u-273,#p15-u-274,#p15-u-275,#p15-u-276,#p15-u-277,#p15-u-278,#p15-u-279,#p15-u-280,#p15-u-281,#p15-u-282,#p15-u-283,#p15-u-284,#p15-u-285,#p15-u-286,#p15-u-287,#p15-u-288,#p15-u-289,#p15-u-290,#p15-u-291,#p15-u-292,#p15-u-293,#p15-u-294,#p15-u-295,#p15-u-296,#p15-u-297,#p15-u-298,#p15-u-299,#p15-u-300,#p15-u-301,#p15-u-302,#p15-u-303,#p15-u-304,#p15-u-305,#p15-u-306,#p15-u-307,#p15-u-308,#p15-u-309,#p15-u-310,#p15-u-311,#p15-u-312,#p15-u-313,#p15-u-314,#p15-u-315,#p15-u-316,#p15-u-317,#p15-u-318,#p15-u-319,#p15-u-320,#p15-u-321,#p15-u-322,#p15-u-323,#p15-u-324,#p15-u-325,#p15-u-326,#p15-u-327,#p15-u-328,#p15-u-329,#p15-u-330,#p15-u-331,#p15-u-332,#p15-u-333,#p15-u-334,#p15-u-335,#p15-u-336,#p15-u-337,#p15-u-338,#p15-u-339,#p15-u-340,#p15-u-341,#p15-u-342,#p15-u-343,#p15-u-344,#p15-u-480,#p15-u-481" } @@ -89,6 +89,24 @@ function start() { }); } +let tl = new TimelineMax(); +tl.from('.title',1,{opacity:0,top: 450},'+=8'); +tl.from('.line1',1,{opacity:0},'+=0.1'); +tl.from('.contentline',1,{opacity:0,top:-20},'+=0.1'); +tl.call(defilenumber,[1]); +tl.from('.contentline2',1,{opacity:0,top:-20},'+=0.1'); +tl.call(defilenumber ,[2]); +tl.from('.contentline3',1,{opacity:0,top:-20},'+=0.1'); +tl.call(defilenumber,[3]); +tl.from('.contentline4',1,{opacity:0,top:-20},'+=0.1'); +tl.call(defilenumber,[4]); +tl.from('.line2',1,{opacity:0},'+=0.1'); +tl.from('.contentline5',1,{opacity:0,top:-20},'+=0.1'); +tl.call(defilenumber,[5]); +tl.from('.line3',1,{opacity:0},'+=0.1'); +tl.from('.contentline6',1,{opacity:0,top:-20},'+=0.1'); +tl.from('.line4',1,{opacity:0},'+=0.1'); + function nToDelay(n) { console.log(n); if (n >= 0) { @@ -99,7 +117,6 @@ function nToDelay(n) { console.log(res); return res; } - function selectTextInArea(rect, excludeSelectors) { var selectRect = { left: rect[0], @@ -109,11 +126,9 @@ function selectTextInArea(rect, excludeSelectors) { right: rect[0] + rect[2], bottom: rect[1] + rect[2] }; - if (excludeSelectors === undefined) { excludeSelectors = ['image']; } - var res = []; $('use,path').each(function () { for (var i = 0; i < excludeSelectors; i++) { @@ -124,26 +139,36 @@ function selectTextInArea(rect, excludeSelectors) { if ($(this).closest('symbol,clipPath').length > 0) { return; } - var rect = $(this).get(0).getBoundingClientRect(); var intersect = intersectRect(rect, selectRect); if ($(this).attr('id') == 'p14-u-18') { console.log(intersect, rect, selectRect); } - if (intersect) { res.push('#' + $(this).attr('id')); } }); - - return res; } - function intersectRect(r1, r2) { return !(r2.left > r1.right || r2.right < r1.left || r2.top > r1.bottom || r2.bottom < r1.top); +} + +function defilenumber(i){ + + var options = { + useEasing: true, + useGrouping: true, + separator: ',', + decimal: '.', + }; + var n= $('#number'+i); + console.log('number '+i,n); + var countup=new CountUp( 'number'+i, 0,parseInt(n.text().replace(/,/g,'')), 0, 2.5, options); + countup.start(); + n.attr('style','opacity: 1 !important'); } \ No newline at end of file diff --git a/AccorHotel-p12-13/main.less b/AccorHotel-p12-13/main.less index f9fec0c..d327b5e 100644 --- a/AccorHotel-p12-13/main.less +++ b/AccorHotel-p12-13/main.less @@ -12,4 +12,209 @@ #p15-imageholder-1 { transform-origin: 0% 50%; +} + +#canvas{ + display: none; + position: absolute; +} +@font-face { + font-family: Gotham-Bold; + src: url("gotham-bold.woff"); +} +@font-face { + font-family: GothamHTF-Book; + src: url("gothamhtf-book.woff"); +} +@font-face { + font-family: GothamHTF-medium; + src: url("gotham-htf-medium.woff"); +} +@font-face { + font-family: DalaFloda; + src: url("DalaFloda.woff"); +} +@title : #e4a014; +@darkblue : #002941; + +#number1, #number2,#number3,#number4,#number5{ + opacity: 1; +} +.number{ + opacity: 0!important; +} +.title{ + color: @title; + font-family: DalaFloda; + position: absolute; + left: -560px; + top: 471px; + font-size: 38px; + letter-spacing: -0.5px; + line-height: 35px; +} +.line1{ + position: absolute; + background: @darkblue; + width: 221px; + height: 1px; + left: -560px; + top: 592px; +} +.contentline{ + position: relative; +} +.txt1{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -554px; + top: -241px; + font-size: 8px; +} +.number1{ + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -511px; + top: -251px; + font-size: 19px; + letter-spacing: -0.7px; +} +.txt2{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -450px; + top: -241px; + font-size: 8px; +} +/********************* content 2*******************************/ +.contentline2{ + position: relative; +} +.txt3{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -554px; + top: -211px; + font-size: 8px; +} +.number2{ + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -511px; + top: -221px; + font-size: 19px; + letter-spacing: -0.7px; +} +.txt4{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -425px; + top: -211px; + font-size: 8px; +} +/********************* content 3*******************************/ +.contentline3{ + position: relative; +} +.txt5{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -515px; + top: -181px; + font-size: 8px; +} +.number3 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -554px; + top: -191px; + font-size: 18px; +} +/********************* content 4*******************************/ +.contentline4{ + position: relative; +} +.txt6{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -525px; + top: -152px; + font-size: 8px; + letter-spacing: 0.2px; +} +.number4 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -554px; + top: -161px; + font-size: 18px; +} +.line2{ + position: absolute; + background: @darkblue; + width: 221px; + height: 1px; + left: -560px; + top: 716px; +} +/*************************** content 5 ****************************/ +.contentline5{ + position: relative; +} +.txt7{ + position: absolute; + font-family: GothamHTF-Book; + color: #002941; + left: -470px; + top: -120px; + font-size: 8px; + letter-spacing: 0.2px; +} +.number5 { + position: absolute; + font-family: Gotham-Bold; + color: #002941; + left: -555px; + top: -129px; + font-size: 18px +} +.line3{ + position: absolute; + background: @darkblue; + width: 221px; + height: 1px; + left: -560px; + top: 749px; +} +/*************************** content 6 ****************************/ +.contentline6{ + position: relative; +} +.txt8{ + position: absolute; + font-family: Gotham-Bold; + color: #e4a014; + left: -555px; + top: -93px; + font-size: 12.5px; + letter-spacing: 0.3px; + line-height: 15px; +} +.line4{ + position: absolute; + background: @darkblue; + width: 221px; + height: 1px; + left: -560px; + top: 795px; } \ No newline at end of file