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

              
                <html>
<head>
<meta charset="utf-8">
<title>Banner de Prueba</title>
<link rel="stylesheet" href="css/banner2.css">
</head>
<body>
<div id="masterbanner">
    <div id="mainbanner">
        <a href="http://www.trilce.edu.pe/academias/catolica/">
        <div id="alumno_cato"><img src="http://www.trilce.edu.pe/gsapbanner/img/alumno-cato.png"></div>
        <div id="texto-cato"><img src="http://www.trilce.edu.pe/gsapbanner/img/texto-cato.png"></div>
        </a>
        
		<a href="http://www.trilce.edu.pe/academias/uni/">
        <div id="alumno_uni"><img src="http://www.trilce.edu.pe/gsapbanner/img/uni-santiago.png"></div>
        <div id="texto-uni"><img src="http://www.trilce.edu.pe/gsapbanner/img/texto-uni.png"></div>
        </a>
        
        <a href="http://www.trilce.edu.pe/academias/"><div id="imagen3"><img src="http://www.trilce.edu.pe/gsapbanner/img/academia-trilce-villa-el-salvador.jpg"></div></a>
        <a href="http://www.trilce.edu.pe/academias/"><div id="imagen4"><img src="http://www.trilce.edu.pe/gsapbanner/img/academia-trilce-inicios.jpg"></div></a>
      <!--  <div id="futuro">
        <p>Ahora academia en</p>
        <h3>VILLA EL SALVADOR</h3>
        
        </div>-->
    </div>
</div>
</body>
 </html>
              
            
!

CSS

              
                html,body{ margin:0;padding:0;height:100%; max-height:480px;}
#masterbanner{ margin:0 auto; padding:0; width:100%; background-color:#4891CE; background:url(http://www.trilce.edu.pe/gsapbanner/img/fondo.jpg); background-repeat:no-repeat; background-size:cover; height:100%;}
#mainbanner{ margin:0 auto;padding:0; max-width:2000px; height:100%; max-height:480px; background-color:transparent; perspective:2000px;-webkit-font-smoothing: antialiased; overflow: hidden;}

#iphone{ visibility:visible;  }
#alumno_cato{ visibility:visible; left:65%; position:relative; }
#alumno_cato img{ height:100%; padding:0; margin:0;}
#texto-cato{ visibility:visible; left:10%; position:absolute; top:10%;}
#texto-cato img{ height:100%; padding:0; margin:0;}
#alumno_uni{ visibility:visible; left:50%; position:absolute; top:0%; }
#alumno_uni img{ height:100%; padding:0; margin:0;}
#texto-uni{ visibility:visible; left:10%; position:absolute; top:10%;}
#texto-uni img{ height:100%; padding:0; margin:0;}
#imagen3 img{ position:absolute !important; top:0% !important; left:0 !important; visibility:visible; z-index:80;}
#imagen4 img{ position:absolute !important; top:0% !important; left:0 !important; visibility:visible; z-index:80;}
              
            
!

JS

              
                $(document).ready(function(e) {
		var w = $(window);
		var ww = w.width();
		var hw = w.height();
		var masterbanner = $('#masterbanner');
		masterbanner.css({'height':ww/4});
		//
		function testlider1(){
			var alumno_cato = $('#alumno_cato');
			var alumno_cato_img = $('#alumno_uni img');
			var texto_cato = $('#texto-cato');
			var texto_cato_img = $('#texto-cato img');
										
			var alumno_uni = $('#alumno_uni');
			var alumno_cato_img = $('#alumno_cato img');
			var texto_uni = $('#texto-uni');
			var texto_uni_img = $('#texto_uni img');
			var imagen3 = $('#imagen3 img');
			var imagen4 = $('#imagen4 img');
			

//			var labeliphone = $('#labeliphone');
			var ipad = $('#ipad');
			var ipadImg = $('#ipad img');
			var futuro = $('#futuro');
			var textos = $('#futuro p');
			var h3 = $('#futuro h3');
			alumno_cato_img.css({'height':masterbanner.height()});
			var tl = new TimelineMax({repeatDelay: 7, repeat:-1});
			tl.set(alumno_uni,{'height':masterbanner.height(),'width':masterbanner.width()*0.69,autoAlpha:1});
			tl.set(texto_uni,{'height':0,'width':0,y:-2000,autoAlpha:0});
			tl.set(alumno_cato,{'height':masterbanner.height(),'width':masterbanner.width()*0.69,autoAlpha:1});
			tl.set(texto_cato,{'height':0,'width':0,y:-2000,autoAlpha:0});
			tl.set(imagen3,{'height':masterbanner.height()});
			tl.set(imagen4,{'height':masterbanner.height()});
//			tl.set(labeliphone,{autoAlpha:0,immediateRender:true,force3D:true});
//			tl.set($('#labeliphone span'),{css:{'position':'relative'},immediateRender:true,force3D:true});
//			tl.set(ipad,{xPercent:65,y:25})
			
			
			tl.from(alumno_uni,2,{css:{x:890, transformOrigin:"50% 50% 600px", autoAlpha:0},force3D:true},"alumno_uni")
			.to(texto_uni,1,{css:{y:0,height:masterbanner.height()*0.76,'width':(masterbanner.width()*0.69),autoAlpha:1,force3D:true},ease:Quad.easeOut},"alumno_uni")
			.to(texto_uni,2,{autoAlpha:0,ease:Quad.easeOut},"alumno_uni+=11")
			.to(alumno_uni,2,{autoAlpha:0,ease:Quad.easeOut},"alumno_uni+=11")
			
			.from(alumno_cato,2,{css:{x:890, transformOrigin:"50% 50% 600px", autoAlpha:0},force3D:true, ease: Circ.easeOut, y: 0},"alumno_uni+=12")
			.to(texto_cato,1,{css:{y:0,height:masterbanner.height()*0.76,'width':(masterbanner.width()*0.69),autoAlpha:1,force3D:true},ease:Quad.easeOut},"alumno_uni+=12")
			.to(texto_cato,1,{autoAlpha:0,ease:Quad.easeOut},"alumno_uni+=23")
			.to(alumno_cato,1,{autoAlpha:0,ease:Quad.easeOut},"alumno_uni+=23")
			.from(imagen3,1,{autoAlpha:0,ease:Quad.easeOut},"alumno_uni+=24")
			.from(imagen4,1,{autoAlpha:0,ease:Quad.easeOut},"alumno_uni+=31");
      tl.timeScale(4)
		}
		 testlider1();
});

$(window).resize(function(e) {
		/*var w = $(window);
		var ww = w.width();
		var hw = w.height();
		var masterbanner = $('#masterbanner');
		masterbanner.css({'height':ww/4});
		
		var alumno_cato_img = $('#alumno_cato img');
		alumno_cato_img.css({'height':masterbanner.height()});
		
		var alumno_uni_img = $('#alumno_uni img');
		alumno_uni_img.css({'height':masterbanner.height()});
		
		var texto_cato_img = $('#texto-cato img');	
		texto_cato_img.css({'height':masterbanner.height()*0.76});
		
		var texto_uni_img = $('#texto-uni img');	
		texto_uni_img.css({'height':masterbanner.height()*0.76});
		
		var imagen3 = $('#imagen3 img');
		imagen3.css({'height':masterbanner.height()});
		
		var imagen4 = $('#imagen4 img');
		imagen4.css({'height':masterbanner.height()});	
    */
});
              
            
!
999px

Console