Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body onload="init();" style="margin:0px;">

	<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:450px; height:500px">
		<canvas id="canvas" width="450" height="500" ></canvas>
		<div id="dom_overlay_container">
		</div>
	</div>

	
	<div class="main404">
		<div class="txt1">404</div>
		<div class="txt2">
		״It’s okay to get lost every once in a while,
		sometimes getting lost is how we find ourselves״
		</div>
		<div class="home_btn">Take me home</div>
	</div>




</body>
              
            
!

CSS

              
                
#animation_container{
  position: absolute;
  bottom:0px;
  right:0px;
}

.main404{
  position: absolute;
  top:20%;
  left:10%;
}

.txt1{
  font-size:160px;
  color:#67B869;
  line-height: 140px;
  font-family: 'Covered By Your Grace', cursive;
}

.txt2{
  font-size:19px;
  width:500px;
  color:#848484;
  line-height: 27px;
  font-family: 'Special Elite', cursive;
  font-weight: 300;
  /*font-style: italic;*/
}

.home_btn{
  background: #4A7CE3;
  width:190px;
  height:50px;
  line-height:55px;
  text-align: center;
  color:#fff;
  font-size:16px;
  margin-top: 40px;
  font-family: 'Special Elite', cursive;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.5s ease;
}

.home_btn:hover{
  background:#3066D6;
}





/* mobile */



@media only screen and (min-device-width: 320px) and (max-device-width: 800px) and (orientation : portrait) {

  .main404 {
        position: absolute;
        top: 20px;
        left: 30px;
    }

  .txt1{
    font-size:120px;
    line-height: 100px;
  }    

  .txt2 {
    font-size: 16px;
    width: 97%;
    line-height: 22px;
  }

  #canvas{
    width:300px!important;
    height: 333px !important;
    position: absolute;
    bottom: 0px;
    left:60px;
  }

  #dom_overlay_container{
    display: none;
  }


  .home_btn{
    margin-top: 20px;

  }


}







@media only screen and (min-device-width: 320px) and (max-device-width: 800px) and (orientation : landscape) {

  #dom_overlay_container{
    display: none;
  }


  .main404 {
        position: absolute;
        top: 20px;
        left: 30px;
    }

  .txt1{
    font-size:120px;
    line-height: 100px;
  }    

  .txt2 {
    font-size: 16px;
    width: 59%;
    line-height: 22px;
  }

    #canvas{
    width:220px!important;
    height: 233px !important;
    position: absolute;
    bottom: 0px;
    right:00px;
  }


  }



@media (min-width: 800px) and (max-width: 990px) {
  .txt2{
    width:35%;
  }

}  
              
            
!

JS

              
                (function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [];

function mc_symbol_clone() {
	var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop));
	clone.gotoAndStop(this.currentFrame);
	clone.paused = this.paused;
	clone.framerate = this.framerate;
	return clone;
}

function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
	var prototype = cjs.extend(symbol, cjs.MovieClip);
	prototype.clone = mc_symbol_clone;
	prototype.nominalBounds = nominalBounds;
	prototype.frameBounds = frameBounds;
	return prototype;
	}


(lib._444 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#72D55E").s().p("Ag1L4IgIAAIhwg3QgLg5ghglIgogmQgQgPgLgPIgLgPQgyhTgIhkQgEgsgNgxQgLghgSggQgXgogegbQgogqgxgrQgugngpgsQgIgJgYgUQgagWgKgKQgqgygIgTQgQggAVgZQAWgYAZAJQALAEAlAeQAcAWARASIAtAqQASAQAeAWIAxAlIAnAbQAVAPAOAMQAOAKAUAAQATAAABgFQACgGgIgOIgPgYQgRgegng0Igug7QgUgagRghQgTglgQgXIgpg5QgbgmgQgaQgbgugDgWQgEghAjgYQAlgYAzBEQANARAcArQAYAmALAOIAxA5IAWAYQAfAlAeAnIA1BOQAeAoAdABQAjADADgXQACgRgSg/QgThJgDgjQgHhFgIgnQgHgogGg4QAAgLgNgxQgNg1gEgeQgNhqBEABQA4ABAWBSQAGAZAGAuQAGAxAEAPIAYBZQARBEAFAiQABANAQA8QASBEANBMIAfgOQALgIAGgdQAIgjABgzQAAg8AFghQgCgfAEg2QAFg8AAgPIgEg9QgEgtADgfQAFheAzAAQA0AAANBbQAEAbABAwQABAxACAMIANBcQAGAoABAnIgBCOQgBBZAJA6QABAOABAbQABAYADAPQAOBBASAmQAYAxAkAOQAMAEAZgEQAOgDAYgGQAhgUAhghQAWgVAdgjQAqgzAwgfQBAgrA3AHQAPACALAHQARAKACATQABAHgMARQgSAWgpAgQgWAWgmA8QgGAKgNALQgPANgFAGQgMASgbAiIgnAyQgcAwgOAVQgYAmgoAnQgaAZgVAbIgfAsQgmA0hCAtQhVA5gTAkQgGAKgDANQgEAMgCAPQAAAHgNAaQhBgShLgBg");
	this.shape.setTransform(0,-77.9);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib._444, new cjs.Rectangle(-75.4,-155.7,150.9,155.8), null);


(lib._333 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#67B268").s().p("Ag1L4IgIAAIhwg3QgLg5ghglIgogmQgQgPgLgPIgLgPQgyhTgIhkQgEgsgNgxQgLghgSggQgXgogegbQgogqgxgrQgugngpgsQgIgJgYgUQgagWgKgKQgqgygIgTQgQggAVgZQAWgYAZAJQALAEAlAeQAcAWARASIAtAqQASAQAeAWIAxAlIAnAbQAVAPAOAMQAOAKAUAAQATAAABgFQACgGgIgOIgPgYQgRgegng0Igug7QgUgagRghQgTglgQgXIgpg5QgbgmgQgaQgbgugDgWQgEghAjgYQAlgYAzBEQANARAcArQAYAmALAOIAxA5IAWAYQAfAlAeAnIA1BOQAeAoAdABQAjADADgXQACgRgSg/QgThJgDgjQgHhFgIgnQgHgogGg4QAAgLgNgxQgNg1gEgeQgNhqBEABQA4ABAWBSQAGAZAGAuQAGAxAEAPIAYBZQARBEAFAiQABANAQA8QASBEANBMIAfgOQALgIAGgdQAIgjABgzQAAg8AFghQgCgfAEg2QAFg8AAgPIgEg9QgEgtADgfQAFheAzAAQA0AAANBbQAEAbABAwQABAxACAMIANBcQAGAoABAnIgBCOQgBBZAJA6QABAOABAbQABAYADAPQAOBBASAmQAYAxAkAOQAMAEAZgEQAOgDAYgGQAhgUAhghQAWgVAdgjQAqgzAwgfQBAgrA3AHQAPACALAHQARAKACATQABAHgMARQgSAWgpAgQgWAWgmA8QgGAKgNALQgPANgFAGQgMASgbAiIgnAyQgcAwgOAVQgYAmgoAnQgaAZgVAbIgfAsQgmA0hCAtQhVA5gTAkQgGAKgDANQgEAMgCAPQAAAHgNAaQhBgShLgBg");
	this.shape.setTransform(0,-77.9);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib._333, new cjs.Rectangle(-75.4,-155.7,150.9,155.8), null);


(lib._222 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#67DB6E").s().p("Ag1L4IgIAAIhwg3QgLg5ghglIgogmQgQgPgLgPIgLgPQgyhTgIhkQgEgsgNgxQgLghgSggQgXgogegbQgogqgxgrQgugngpgsQgIgJgYgUQgagWgKgKQgqgygIgTQgQggAVgZQAWgYAZAJQALAEAlAeQAcAWARASIAtAqQASAQAeAWIAxAlIAnAbQAVAPAOAMQAOAKAUAAQATAAABgFQACgGgIgOIgPgYQgRgegng0Igug7QgUgagRghQgTglgQgXIgpg5QgbgmgQgaQgbgugDgWQgEghAjgYQAlgYAzBEQANARAcArQAYAmALAOIAxA5IAWAYQAfAlAeAnIA1BOQAeAoAdABQAjADADgXQACgRgSg/QgThJgDgjQgHhFgIgnQgHgogGg4QAAgLgNgxQgNg1gEgeQgNhqBEABQA4ABAWBSQAGAZAGAuQAGAxAEAPIAYBZQARBEAFAiQABANAQA8QASBEANBMIAfgOQALgIAGgdQAIgjABgzQAAg8AFghQgCgfAEg2QAFg8AAgPIgEg9QgEgtADgfQAFheAzAAQA0AAANBbQAEAbABAwQABAxACAMIANBcQAGAoABAnIgBCOQgBBZAJA6QABAOABAbQABAYADAPQAOBBASAmQAYAxAkAOQAMAEAZgEQAOgDAYgGQAhgUAhghQAWgVAdgjQAqgzAwgfQBAgrA3AHQAPACALAHQARAKACATQABAHgMARQgSAWgpAgQgWAWgmA8QgGAKgNALQgPANgFAGQgMASgbAiIgnAyQgcAwgOAVQgYAmgoAnQgaAZgVAbIgfAsQgmA0hCAtQhVA5gTAkQgGAKgDANQgEAMgCAPQAAAHgNAaQhBgShLgBg");
	this.shape.setTransform(0,-77.9);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib._222, new cjs.Rectangle(-75.4,-155.7,150.9,155.8), null);


(lib._111 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#67B869").s().p("AhAOYIgKAAIiIhCQgNhFgogtIgxgvQgTgSgNgRQgIgKgFgJQg9hlgKh5QgFg1gPg7QgNgogWgmQgdgxgjghQgxgzg7gzQg4gwgyg2QgJgKgdgYQgggbgMgMQgzg9gKgXQgTgnAagdQAageAeALQAOAFAsAkQAiAbAVAVQAeAeAYAVQAWAUAkAbIA7AtIAwAgQAZASASAOQAQANAYAAQAXAAACgGQACgHgKgRIgRgeQgWgkgug/Ig4hHQgYgfgVgpQgXgsgTgcIgyhFQgggugUggQghg4gEgbQgEgnAqgdQAtgdA+BSQAPAVAiA0QAdAuAOARIA7BEIAaAeQAnAsAjAwQAXAfApA/QAlAwAkACQApADAEgbQACgVgVhMQgXhZgEgqQgIhTgKgwQgJgwgGhEQgBgNgPg8QgQg/gFglQgQiBBTACQBEABAaBjQAHAfAIA4QAHA7AFASIAcBsQAWBSAFApQACAPATBKQAWBSAPBbIAmgRQAOgJAHgjQAKgqAAg/QABhIAFgoQgCglAFhCQAGhIAAgSIgFhKQgEg3ADgmQAGhxA+AAQA/AAAQBuQAEAhACA6QABA7ACAOIAQBwQAHAxABAvIgBCrQgBBsALBHIACAxQACAdAEASQAQBQAWAuQAdA7ArAQQAQAGAegGQARgDAdgIQAogYAognQAagaAkgrQAyg9A7gmQBNgzBCAIQASADAOAIQAUAMADAXQABAJgPATQgVAcgyAnQgbAagtBIQgIAMgQAOQgSAQgGAHQgOAWghApQghAqgOATIgzBUQgdAugxAuQgfAegZAhIgmA2QguA/hQA2QhnBFgXArQgHANgEAPQgFAPgCATQgBAHgPAgQhOgVhbgCg");
	this.shape.setTransform(0,-92.1);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib._111, new cjs.Rectangle(-91.3,-186.4,182.6,188.6), null);


(lib.w4 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.instance = new lib._444();
	this.instance.parent = this;
	this.instance.setTransform(-28,-23.6,0.95,0.93,0,0,180,0,-77.8);

	this.timeline.addTween(cjs.Tween.get(this.instance).to({regX:-0.1,regY:-77.7,skewX:15,skewY:195,x:-11.1},13).to({regX:0,regY:-77.8,skewX:0,skewY:180,x:-28},11).wait(1));

	// Layer_2
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#72D55E").s().p("Ai6RjQADi9gSlGQgUlXAAhsQAAhNAen6IATlnIAFhWQAFhuAAgiQAAgegBgUIAAgGQBJAABIgBIAIAAIBpgyIgEAkQgBAqAKCPIAIB0IAZEpIA6KMQARDeAICgQAOFTgQDug");
	this.shape.setTransform(-21.1,149.1);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(25));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-99.7,-96.1,143.4,357.5);


(lib.w3 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.instance = new lib._333();
	this.instance.parent = this;
	this.instance.setTransform(41.9,59.4,0.664,0.664,0,0,0,0.1,-77.8);

	this.timeline.addTween(cjs.Tween.get(this.instance).to({regX:0.2,rotation:30,x:63.4,y:65.8},11).to({regX:0.1,rotation:0,x:41.9,y:59.4},13).wait(1));

	// Layer_2
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#67B268").s().p("AiVMjQgLirAKjyQAFhyAMifIApnRIASjVIAFhTQAHhmgBgeIgDgaIBKAkIAFAAQAzABAzAAIAAAEIgBAkQAAAYAEBPIADA9IANEBQAVFpAAA3QAABNgOD1QgMDpACCIg");
	this.shape.setTransform(36.8,181.1);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(25));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-8.2,7.6,100.3,253.8);


(lib.w2 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.instance = new lib._222();
	this.instance.parent = this;
	this.instance.setTransform(112.1,-39.3,1,1,15,0,0,0.1,-77.9);

	this.timeline.addTween(cjs.Tween.get(this.instance).to({regX:0,rotation:0,x:95.5,y:-39.4},8).to({regX:0.1,rotation:15,x:112.1,y:-39.3},16).wait(1));

	// Isolation Mode
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#67DB6E").s().p("AjgS4QgRkBAQlsQAHirASjvIA+q9QAYkbALiiQAKiagCgsQgBgWgDgSIBvA2IAIAAQBMACBNgBIAAAHQgCAVAAAgQAAAlAGB3QAICiASE8QAfIgAABTQAAB0gVFxQgTFeADDMg");
	this.shape.setTransform(87.6,140.6);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(25));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(19,-134.1,186.1,395.5);


(lib.w1 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_1
	this.instance = new lib._111();
	this.instance.parent = this;
	this.instance.setTransform(-80,-115.1,1,1,-2.8,0,0,0.1,-93.2);

	this.timeline.addTween(cjs.Tween.get(this.instance).to({regX:0,rotation:14,x:-56.2,y:-110.3},13,cjs.Ease.get(0.93)).to({regX:0.1,rotation:-2.8,x:-80,y:-115.1},11,cjs.Ease.get(0.2)).wait(1));

	// Isolation Mode
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#67B869").s().p("AkPW3QgVk3ATm5QAJjQAWkhIBKtRIANiWQAUjsAKiWIAAgDQAMi5gCg3QgBgZgEgXICGBCIAKAAQBcACBdgBIAAAIQgCAaAAAnQAAAmAFBxIACAlQAGCEAMDZIANDmQAmKUAABkQAACMgZG/QgXGoAED3g");
	this.shape.setTransform(-85.4,112.7);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(25));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-175.8,-212.6,191.5,471.7);


// stage content:
(lib.hand = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer_3
	this.instance = new lib.w4();
	this.instance.parent = this;
	this.instance.setTransform(198.7,327.9,1,1,0,0,0,-28.1,82.6);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(25));

	// Isolation Mode
	this.instance_1 = new lib.w3();
	this.instance_1.parent = this;
	this.instance_1.setTransform(268.8,379.8,1,1,0,0,0,41.9,134.5);

	this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(25));

	// Layer_2
	this.instance_2 = new lib.w2();
	this.instance_2.parent = this;
	this.instance_2.setTransform(341.4,303.4,1,1,0,0,0,112,63.6);

	this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(25));

	// Isolation Mode
	this.instance_3 = new lib.w1();
	this.instance_3.parent = this;
	this.instance_3.setTransform(138.7,265.4,1,1,0,0,0,-80,23.2);

	this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(25));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(267.9,279.6,391.5,477.2);
// library properties:
lib.properties = {
	id: '2BDBF320333D430CAB45C23BE016197F',
	width: 450,
	height: 500,
	fps: 27,
	color: "#FFFFFF",
	opacity: 1.00,
	manifest: [],
	preloads: []
};



// bootstrap callback support:

(lib.Stage = function(canvas) {
	createjs.Stage.call(this, canvas);
}).prototype = p = new createjs.Stage();

p.setAutoPlay = function(autoPlay) {
	this.tickEnabled = autoPlay;
}
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }

p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }

an.bootcompsLoaded = an.bootcompsLoaded || [];
if(!an.bootstrapListeners) {
	an.bootstrapListeners=[];
}

an.bootstrapCallback=function(fnCallback) {
	an.bootstrapListeners.push(fnCallback);
	if(an.bootcompsLoaded.length > 0) {
		for(var i=0; i<an.bootcompsLoaded.length; ++i) {
			fnCallback(an.bootcompsLoaded[i]);
		}
	}
};

an.compositions = an.compositions || {};
an.compositions['2BDBF320333D430CAB45C23BE016197F'] = {
	getStage: function() { return exportRoot.getStage(); },
	getLibrary: function() { return lib; },
	getSpriteSheet: function() { return ss; },
	getImages: function() { return img; }
};

an.compositionLoaded = function(id) {
	an.bootcompsLoaded.push(id);
	for(var j=0; j<an.bootstrapListeners.length; j++) {
		an.bootstrapListeners[j](id);
	}
}

an.getComposition = function(id) {
	return an.compositions[id];
}



})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;









var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
	canvas = document.getElementById("canvas");
	anim_container = document.getElementById("animation_container");
	dom_overlay_container = document.getElementById("dom_overlay_container");
	var comp=AdobeAn.getComposition("2BDBF320333D430CAB45C23BE016197F");
	var lib=comp.getLibrary();
	handleComplete({},comp);
}
function handleComplete(evt,comp) {
	//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
	var lib=comp.getLibrary();
	var ss=comp.getSpriteSheet();
	exportRoot = new lib.hand();
	stage = new lib.Stage(canvas);	
	//Registers the "tick" event listener.
	fnStartAnimation = function() {
		stage.addChild(exportRoot);
		createjs.Ticker.setFPS(lib.properties.fps);
		createjs.Ticker.addEventListener("tick", stage);
	}	    
	//Code to support hidpi screens and responsive scaling.
	function makeResponsive(isResp, respDim, isScale, scaleType) {		
		var lastW, lastH, lastS=1;		
		window.addEventListener('resize', resizeCanvas);		
		resizeCanvas();		
		function resizeCanvas() {			
			var w = lib.properties.width, h = lib.properties.height;			
			var iw = window.innerWidth, ih=window.innerHeight;			
			var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;			
			if(isResp) {                
				if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
					sRatio = lastS;                
				}				
				else if(!isScale) {					
					if(iw<w || ih<h)						
						sRatio = Math.min(xRatio, yRatio);				
				}				
				else if(scaleType==1) {					
					sRatio = Math.min(xRatio, yRatio);				
				}				
				else if(scaleType==2) {					
					sRatio = Math.max(xRatio, yRatio);				
				}			
			}			
			canvas.width = w*pRatio*sRatio;			
			canvas.height = h*pRatio*sRatio;
			canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px';				
			canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
			stage.scaleX = pRatio*sRatio;			
			stage.scaleY = pRatio*sRatio;			
			lastW = iw; lastH = ih; lastS = sRatio;            
			stage.tickOnUpdate = false;            
			stage.update();            
			stage.tickOnUpdate = true;		
		}
	}
	makeResponsive(false,'both',false,1);	
	AdobeAn.compositionLoaded(lib.properties.id);
	fnStartAnimation();
}
              
            
!
999px

Console