Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="container">

<div id="content-wrapper">
	<div id="foreground"></div>

	
	<div id="carousellABM" class="carousel slide carousel-fade" data-ride="carousel">
  <ol class="carousel-indicators">
    <li data-target="#carousellABM" data-slide-to="0" class="active"></li>
    <li data-target="#carousellABM" data-slide-to="1"></li>
    <li data-target="#carousellABM" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img  class="d-block w-100" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12460/-e-Screen%20Shot%202018-04-30%20at%2013.02.39.jpg" alt="First slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12460/Screen%20Shot%202018-04-27%20at%2017.20.01.jpg" alt="Second slide">
    </div>
    <div class="carousel-item">
      <img class="d-block w-100" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12460/Screen%20Shot%202018-05-01%20at%2017.00.02.jpg" alt="Third slide">
    </div>
  </div>
 
</div>
		 
	
	<div id="box-container">
		<div class="paph-wrapper"> 
			<div id="text">
		
				<h2 class="fadeText">Work with the<br>ABM experts</h2>
				<i class="icon-line"></i>
				<p class="fadeText">We are the account-based marketing partner of choice for the world’s most successful brands.</p>
			</div>
			<div class="small-path"></div>
			<div class="path"></div>
		</div> 
		<div class="paph-wrapper1"> 
			<div id="text">
		
				<h2 class="fadeText">Create real  business impact</h2>
				<i class="icon-line"></i>
				<p class="fadeText">Build relationships and close bigger dealsin your strategic accounts.</p>
			</div>
			<div class="small-path"></div>
			<div class="path"></div>
		</div> 
		<div class="paph-wrapper2"> 
			<div id="text">
		
				<h2 class="fadeText">Dive deeper intoimportant accounts...</h2>
				<i class="icon-line"></i>
				<p class="fadeText">...for a hyper-targeted approach thatreaches decision makers.</p>
			</div>
			<div class="small-path"></div>
			<div class="path"></div>
		</div> 
 	</div>
</div> 
</div>
              
            
!

CSS

              
                body {
	background: black;
}
.container {
	width: 100%;
	max-width: 1280px;
	margin: auto;
}
#content-wrapper {
	width: 100%;
	height: 100vh;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	padding: .3rem 3.8rem;
}
#box-container {
	width: 100%;
	height: 100%;
	margin: 0 auto;
	position: relative; 
}
#hero {
	position: relative;
	width: 100%;
	height: 100vh;
}

#carousellABM { 
	z-index: 1;
	top: 0;
	left: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	background: black;
	img{
		max-width:100%;
		height:auto;
	}
}
#foreground {
	width: 100%;
	height: 100vh;
	left:0;
	top:0;
	position: absolute;
	margin: 0 auto;
	background: #0164ab;
	z-index: 2;
}
.paph-wrapper,.paph-wrapper1,.paph-wrapper2 {
	position: absolute;
	max-width: 380px;
	max-height: 260px;
	width: 100%;
	height: 100%;
	left: 0;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	z-index: 3;
}
.paph-wrapper1{
	.small-path{
		top: 245px;
		left: 30px;
	}
}
.paph-wrapper2{
	.small-path{
		top: 230px;
    left: 210px;
	}
}
#text {
	z-index: 1;
	position: absolute;
	left: 0;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	padding: 0px 50px;
	color: #fff;
	opacity: 1;

	h2 {
		color: #fff;
		font-size: 24px;
		letter-spacing: 2.4px;
		margin: 1rem 0;
	}
	p {
		color: #fff;
		font-size: 16px;
		letter-spacing: 2.4px;
		margin: 1rem 0;
	}
	.icon-line {
		width: 100%;
		height: 1px;
		display: block;
		background: red;
	}
}
.small-path {
	top: 10px;
	left: 30px;
	width: 30px;
	height: 30px;
	position: absolute;
	background: #0072bb;
	opacity: 1;
	clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.path {
	position: absolute;
	left: 0;
	top: 0%;
	width: 260px;
	height: 260px;
	background: #0072bb;
	opacity: 0.2;
	clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.carousel-indicators li {
	border-radius: 50%;
	width:10px;
	height:10px;
	background-color: #ffffff;
	&.active{
		background-color: #0070c0;
	}
}

#carousellABM img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-item{
	&:after{
		content:"";
		position:absolute;
		top:0;
		left:0;
		width:100%;
		height:100%;
		opacity: 0.5;
		background:black;
	}
	height:100vh;
}
              
            
!

JS

              
                // Menu moving downward
TweenMax.set("#foreground", {alpha:1}, 0);
TweenMax.from(".path", 1, {x:50,scale:1.2}, 0);
TweenMax.from(".small-path", 1, {scale:2.4,x:150}, 0);
// Staggered menu items 
TweenMax.set(('.icon-line'), {autoAlpha:0,width: "0%", ease: Sine.easeInOut},'.1');
TweenMax.to('.icon-line', 2, {autoAlpha:1,width: "35%", ease: Sine.easeInOut },'.2') ;

TweenMax.staggerFrom(".fadeText",1,{delay:2,opacity:0, x:-50},'.3');
TweenMax.to("#foreground", 1, {delay:4, x:'100%',
							
															 
//initiate Bootstrap
onComplete: function() {
	 $('#carousellABM').carousel('pause');
		TweenMax.to(".fadeText", .7, {
				scale: 1,
				ease: Cubic.easeOut
			})
	$('#carousellABM').carousel('cycle'); 
	
		$('#carousellABM').one('slid.bs.carousel', function () {
			TweenMax.set(('.icon-line'), {autoAlpha:0,width: "0%", ease: Sine.easeInOut},'.1');
			TweenMax.to('.icon-line', 2, {autoAlpha:1,width: "35%", ease: Sine.easeInOut },'.2') ;
 
		});
	 
		$('#carousellABM').on('slide.bs.carousel', function (e) {
			TweenMax.fromTo("#foreground", 0.7, {x: "0%"}, {x: "100%",  ease: Sine.easeInOut}, 1);
			TweenMax.set(('.icon-line'), {autoAlpha:0,width: "0%", ease: Sine.easeInOut},'.1');
			TweenMax.to('.icon-line', 2, {autoAlpha:1,width: "35%", ease: Sine.easeInOut },'.2') ;
		 
			
			tl.play(); 
		}); 
      
} 											
},'.4')



function slideIn(el) { 
  return TweenMax.from(el, 0.7, {autoAlpha:0, x:"+=50" 
	 }) 
}

function slideOut(el) { 
  return TweenMax.to(el, 0.7, {autoAlpha:0, x:"+=50"   
	})  
	
}

var tl= new TimelineMax();
tl.add(slideIn(".paph-wrapper")); 
 
tl.addPause()
tl.add(slideOut(".paph-wrapper"));
tl.add(slideIn(".paph-wrapper1"));

tl.addPause()
tl.add(slideOut(".paph-wrapper1"));
tl.add(slideIn(".paph-wrapper2"));

tl.addPause()
tl.add(slideOut(".paph-wrapper2"));
tl.call(tl.play, [0], tl);
              
            
!
999px

Console