css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="wrapper">
<div class="content">
<div class="bg grad_sky"></div>
<div class="bg grad_cold"></div>
<header>
<h3 class="date sunset"><span class="arrow"><!--&#8599; &#8663; -->&#10138;</span>7 May 2014 20:04</h3>
<h3 class="date2 snow"><span class="arrow">&#10138;</span>8 June 2014 08:25</h3>
</header>


<section class="info">
<h4>Flight</h4>
<div class="flight">
<h2>DA221</h2>
</div>
<div class="flight2">
<h2>LE284</h2>
</div>
</section>

<section class="info">
<h4><span class="arrow">&#10138;</span>Terminal/gate</h4>
<div class="gate">
<h2>T - 3</h2>
</div>
<div class="gate2">
<h2>A - 1</h2>
</div>
</section>

<section class="route">
<div class="terminal out">
<h1 class="out-text">EPI</h1>
<h1 class="out-text2">DES</h1>
</div>

<div class="plane">
<div class="landed"></div>
<div class="takeoff"></div>
</div>

<div class="terminal in">
<h1 class="in-text">SDE</h1>
<h1 class="in-text2">IGN</h1>
</div>
</section>



<footer>
<div class="status">
<h2>Landed</h2>
</div>
<div class="status2">
<h2>Departed</h2>
</div>
<div class="time-area">
<div class="time1">
<h4>Landed 03h:10m ago</h4>
</div>
<div class="time2">
<h4>Departed 01h:34m ago</h4>
</div>
</div>
</footer>

</div>
<div id="progress"></div>

</div><!--wrapper-->
            
          
!
            
              @charset "UTF-8";
/* CSS Document */

body {
	font-family: 'Oswald', sans-serif;
}

/*IMAGES*/

img.scale-with-grid {
	max-width: 100%;
	height: auto;
}


/*TYPE*/


h1 {font-weight: 400;
	font-size: 60px;
	text-align: center;
}

h2 {
	font-size: 34px;
	text-transform: uppercase;
}

h3 {
	font-size: 23px;
	letter-spacing: 1px;
	font-weight: 300;
}

h4 { font-weight: 70000;
	text-transform: uppercase;
	font-size: 16px;
	color: black;
	opacity: 0.5;
	letter-spacing: 1px;
}

.align-right {
	text-align: right;
}

.align-center {
	text-align: center;
}

/*MAIN*/

.wrapper {  width: 960px; margin:0 auto; }

.content {
	
	height:700px;
	margin:0 auto;
	position: relative;
}

.arrow {
	font-size: 75%;
	padding-right: 5px;
}

/*COLOURS*/

.bg {
	width: 100%;
	height: 100%;
	position: absolute;
}

.grad_sky {
background: #3f6296;
background: -moz-linear-gradient(top,  #3f6296 14%, #7c8592 26%, #b9a67f 39%, #ddc33e 53%, #d28825 70%, #891716 87%, #2e1314 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(14%,#3f6296), color-stop(26%,#7c8592), color-stop(39%,#b9a67f), color-stop(53%,#ddc33e), color-stop(70%,#d28825), color-stop(87%,#891716), color-stop(100%,#2e1314));
background: -webkit-linear-gradient(top,  #3f6296 14%,#7c8592 26%,#b9a67f 39%,#ddc33e 53%,#d28825 70%,#891716 87%,#2e1314 100%);
background: -o-linear-gradient(top,  #3f6296 14%,#7c8592 26%,#b9a67f 39%,#ddc33e 53%,#d28825 70%,#891716 87%,#2e1314 100%);
background: -ms-linear-gradient(top,  #3f6296 14%,#7c8592 26%,#b9a67f 39%,#ddc33e 53%,#d28825 70%,#891716 87%,#2e1314 100%);
background: linear-gradient(to bottom,  #3f6296 14%,#7c8592 26%,#b9a67f 39%,#ddc33e 53%,#d28825 70%,#891716 87%,#2e1314 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3f6296', endColorstr='#2e1314',GradientType=0 );

}

.grad_cold {
background: #eeeeee;
background: -moz-linear-gradient(top,  #eeeeee 0%, #dee6ed 29%, #dcdeed 51%, #cbcedb 80%, #ffffff 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(29%,#dee6ed), color-stop(51%,#dcdeed), color-stop(80%,#cbcedb), color-stop(100%,#ffffff));
background: -webkit-linear-gradient(top,  #eeeeee 0%,#dee6ed 29%,#dcdeed 51%,#cbcedb 80%,#ffffff 100%);
background: -o-linear-gradient(top,  #eeeeee 0%,#dee6ed 29%,#dcdeed 51%,#cbcedb 80%,#ffffff 100%);
background: -ms-linear-gradient(top,  #eeeeee 0%,#dee6ed 29%,#dcdeed 51%,#cbcedb 80%,#ffffff 100%);
background: linear-gradient(to bottom,  #eeeeee 0%,#dee6ed 29%,#dcdeed 51%,#cbcedb 80%,#ffffff 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );


}

.sunset {
	color: #3f6296;
}

.snow {
	color: white;
}

/*HEADER*/

header {
	background-color: black;
	padding: 15px;
	text-align: center;
	text-transform: uppercase;
	background-clip: text;
	height: 20px;
	position: relative;
}

/*INFO*/

.date {
	position: relative;
}

.date2 {
	top: -23px;
	position: relative;
}
	
.info {
	width: 50%;
	text-align: center;
	float: left;
	margin-top: 30px;
	padding-top: 0;
}

.info h4 {
}

.gate,
.gate2,
.flight,
.flight2 {
	position: relative;
}

.gate2,
.flight2 {
	top: -34px;
}

.route {
	margin: 270px auto 0;
	clear: both;
		width: 380px;
	height: 80px;
}

.terminal,
.plane {
	float: left;
}

.plane {
	margin-right: 10px;
	margin-left: 10px;
}

.plane,
.landed,
.takeoff {
	width: 100px;
	height: 60px;
	background-size:100%;
	position: relative;
}

.landed {
	background: url(https://googledrive.com/host/0BxTz8uiHWZpeNmtZZkJvdDNyRUE/plane.svg ) no-repeat center 18px;
}

.takeoff {
	background: url(https://googledrive.com/host/0BxTz8uiHWZpeNmtZZkJvdDNyRUE/plane_takeoff.svg) no-repeat center 18px;
	top: -60px;
}

.terminal {
	padding-bottom: 10px;
	width: 130px;
}

.in, 
.out {
	height: 55px;
}

.out {
	border-bottom: 1px solid black;
	position: relative;
}

.in-text,
.out-text,
.in-text2,
.out-text2 {
	position: relative;
}

.in-text2,
.out-text2 {
	
	top: -60px;
}

/*FOOTER*/

footer {
	position: absolute;
	bottom: 0;
	padding: 10px;
	text-align: center;
	width: 100%;
}

.status,
.status2 {
	position: relative;
}

.status2 {
	top: -34px;
}

.time1,
.time2 {
	position: relative;
}

.time1 {
	top: 15px;
}

footer h2 {
	color: white;
}

footer h4 {
	
	color: grey;
}

.time-area {
	margin-top: 100px;
}

#progress{
  width:100%;
  height:10px;
  background-color:silver;
}

 @media only screen and (min-width: 768px) and (max-width: 959px) {
        .wrapper                                  { width: 768px; }
 }

@media only screen and (max-width: 767px) {
         .wrapper { width: 400px; }
}


            
          
!
            
              // JavaScript Document
var gate = document.getElementsByClassName('gate');
var flight = document.getElementsByClassName('flight');
var gate2 = document.getElementsByClassName('gate2');
var flight2 = document.getElementsByClassName('flight2');
var date = document.getElementsByClassName('date');
var date2 = document.getElementsByClassName('date2');
var status1 = document.getElementsByClassName('status');
var status2 = document.getElementsByClassName('status2');
var time1 = document.getElementsByClassName('time1');
var time2 = document.getElementsByClassName('time2');
var inText = document.getElementsByClassName('in-text');
var inText2 = document.getElementsByClassName('in-text2');
var outText = document.getElementsByClassName('out-text');
var outText2 = document.getElementsByClassName('out-text2');
var outBox = document.getElementsByClassName('out');
var landed = document.getElementsByClassName('landed');
var takeoff = document.getElementsByClassName('takeoff');
var gradCold = document.getElementsByClassName('grad_cold');
var progress = document.getElementById("progress");

//Restes

TweenLite.to(gate2, 0, { top:"0px", rotationX: -90, alpha:0});
TweenLite.to(flight2, 0, { top:"0px", rotationX: -90, alpha:0});
TweenLite.to(date2, 0, { top:"0px", rotationX: -90, alpha:0});
TweenLite.to(status2, 0, { top:"0px", rotationX: -90, alpha:0});
TweenLite.to(time2, 0, { top:"0px", rotationX: -90, alpha:0});

TweenLite.to(inText2, 0, { top:"+=120px", alpha:0});
TweenLite.to(outText2, 0, { top:"-=120px", alpha:0});

TweenLite.to(takeoff, 0, { left:"-=320px", top:"+=200px", alpha:0});
TweenLite.to(gradCold, 0, {alpha:0})


var masterTimeline = new TimelineMax({repeat:-1, yoyo:true, repeatDelay:3});
var flightAnimation = new TimelineMax({});



flightAnimation
.to(gradCold, 1.5, {alpha:1}, "intro")

.to(inText, 1, { top:"-=120px", alpha:0}, "intro")
.to(outText, 1, { top:"+=120px", alpha:0}, "intro")
.to(landed, 1, { left:"+=320px", alpha:0}, "intro")

.to(outBox, 0.5, {  alpha:0}, "intro")

.to(inText2, 1, { top:"-=120px", alpha:1}, "intro")
.to(outText2, 1, { top:"+=120px", alpha:1}, "intro")
.to(takeoff, 1, { left:"+=320px", top:"-=200px", alpha:1}, "intro")
.to(outBox, 0.5, {  alpha:1}, "intro")

.to(date, 1, { top:"-10px", rotationX: 90, alpha:0}, "intro")
.to(date2, 1.5, { top:"-23px", rotationX: 0, alpha:1}, "intro")
.to(gate, 1, { top:"-10px", rotationX: 90, alpha:0}, "intro")
.to(gate2, 1.5, { top:"-30px", rotationX: 0, alpha:1}, "intro")
.to(flight, 1, { top:"-10px", rotationX: 90, alpha:0}, "intro")
.to(flight2, 1.5, { top:"-30px", rotationX: 0, alpha:1}, "intro")
.to(status1, 1, { top:"-10px", rotationX: 90, alpha:0}, "intro")
.to(status2, 1.5, { top:"-35px", rotationX: 0, alpha:1}, "intro")
.to(time1, 1, { top:"-5px", rotationX: 90, alpha:0}, "intro")
.to(time2, 1.5, { top:"-5px", rotationX: 0, alpha:1}, "intro")

;

masterTimeline.add(flightAnimation)

.from(progress, masterTimeline.duration(), {scaleX:0, transformOrigin:"left center"}, 0)

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console