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

              
                	
	<!-- Navigation -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Side Scrolling Theme</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="#">About</a>
                    </li>
                    <li>
                        <a href="#">Services</a>
                    </li>
                    <li>
                        <a href="#">Contact</a>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>

	<!-- Scrolling Banner -->
	<div id="horizontal-scroll">
	  <div id="horizontal-scroll2">
		<div id="horizontal-scroll3">
		  <div id="banner">
			<span style="display: block;" class="animated infinite pulse">
			  <h1>Side Scroller!</h1>
			</span>
			<h3 class="scrollbanner"><a href="#">Dynamic Call To Action!</a></h3>
		  </div>
		</div>
	  </div>
	</div>
	
	<!-- Page Content -->
    <div class="container">
		
		<!-- Title -->
        <div class="row">
            <div class="col-lg-12">
                <h3 class="bangersheader">Latest Features</h3>
            </div>
        </div>
        <!-- /.row -->

        <!-- Page Features -->
        <div class="row text-center">

            <div class="col-md-3 col-sm-6 hero-feature">
                <div class="thumbnail">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/3.png" alt="">
                    <div class="caption">
                        <h4 class="bangersheader">Feature Label</h4>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
                        <p>
                            <a href="#" class="btn btn-primary">Buy Now!</a> <a href="#" class="btn btn-default">More Info</a>
                        </p>
                    </div>
                </div>
            </div>

            <div class="col-md-3 col-sm-6 hero-feature">
                <div class="thumbnail">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/1.png" alt="">
                    <div class="caption">
                        <h4 class="bangersheader">Feature Label</h4>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
                        <p>
                            <a href="#" class="btn btn-primary">Buy Now!</a> <a href="#" class="btn btn-default">More Info</a>
                        </p>
                    </div>
                </div>
            </div>

            <div class="col-md-3 col-sm-6 hero-feature">
                <div class="thumbnail">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/4.png" alt="">
                    <div class="caption">
                        <h4 class="bangersheader">Feature Label</h4>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
                        <p>
                            <a href="#" class="btn btn-primary">Buy Now!</a> <a href="#" class="btn btn-default">More Info</a>
                        </p>
                    </div>
                </div>
            </div>

            <div class="col-md-3 col-sm-6 hero-feature">
                <div class="thumbnail">
                    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/2.png" alt="">
                    <div class="caption">
                        <h4 class="bangersheader">Feature Label</h4>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
                        <p>
                            <a href="#" class="btn btn-primary">Buy Now!</a> <a href="#" class="btn btn-default">More Info</a>
                        </p>
                    </div>
                </div>
            </div>

        </div>
        <!-- /.row -->
		
		<hr>
		
		<!-- Project One -->
        <div class="row">
            <div class="col-md-7">
                <a href="#">
                    <img class="img-responsive" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/700x300-1.png" alt="">
                </a>
            </div>
            <div class="col-md-5">
                <h3 class="bangersheader">Project One</h3>
                <h4 class="amatic">Subheading</h4>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium veniam exercitationem expedita laborum at voluptate. Labore, voluptates totam at aut nemo deserunt rem magni pariatur quos perspiciatis atque eveniet unde.</p>
                <a class="btn btn-primary" href="#">View Project <span class="glyphicon glyphicon-chevron-right"></span></a>
            </div>
        </div>
        <!-- /.row -->

        <hr>

        <!-- Project Two -->
        <div class="row">
            <div class="col-md-7">
                <a href="#">
                    <img class="img-responsive" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/700x300-2.png" alt="">
                </a>
            </div>
            <div class="col-md-5">
                <h3 class="bangersheader">Project Two</h3>
                <h4 class="amatic">Subheading</h4>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, odit velit cumque vero doloremque repellendus distinctio maiores rem expedita a nam vitae modi quidem similique ducimus! Velit, esse totam tempore.</p>
                <a class="btn btn-primary" href="#">View Project <span class="glyphicon glyphicon-chevron-right"></span></a>
            </div>
        </div>
        <!-- /.row -->

        <hr>

        <!-- Project Three -->
        <div class="row">
            <div class="col-md-7">
                <a href="#">
                    <img class="img-responsive" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/700x300-6.png" alt="">
                </a>
            </div>
            <div class="col-md-5">
                <h3 class="bangersheader">Project Three</h3>
                <h4 class="amatic">Subheading</h4>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Omnis, temporibus, dolores, at, praesentium ut unde repudiandae voluptatum sit ab debitis suscipit fugiat natus velit excepturi amet commodi deleniti alias possimus!</p>
                <a class="btn btn-primary" href="#">View Project <span class="glyphicon glyphicon-chevron-right"></span></a>
            </div>
        </div>
        <!-- /.row -->
		
		<hr>
		
		<div class="row">
            <div class="col-sm-8">
                <h2 class="bangersheader">What We Do</h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Omnis, temporibus, dolores, at, praesentium ut unde repudiandae voluptatum sit ab debitis suscipit fugiat natus velit excepturi amet commodi.</p>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et molestiae similique eligendi reiciendis sunt distinctio odit? Quia, neque, ipsa, adipisci quisquam ullam deserunt accusantium illo iste exercitationem nemo voluptates asperiores.</p>
                <p>
                    <a class="btn btn-default btn-lg" href="#">Call to Action &raquo;</a>
                </p>
            </div>
            <div class="col-sm-4">
                <h2 class="bangersheader">Contact Us</h2>
                <address>
                    <p><strong>Side Scroller</strong>
                    <br>3301 Cicada Rd. Suite #64  
                    <br>Prime, GS 11235-3301</p>
                </address>
                <address>
                    <p>Phone: (112) 358-1321
                    <br>
                    Email: <a href="mailto:#">terryscrimsher@gmail.com</a></p>
                </address>
            </div>
        </div>
        <!-- /.row -->

        <hr>
		
		<div class="row">
            <div class="col-sm-4 textcenter">
                <img class="img-circle img-responsive img-center centerimg" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/300x300-1.png" alt="">
                <h2 class="bangersheader">Marketing Box #1</h2>
                <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
            </div>
            <div class="col-sm-4 textcenter">
                <img class="img-circle img-responsive img-center centerimg" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/300x300-4.png" alt="">
                <h2 class="bangersheader">Marketing Box #2</h2>
                <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
            </div>
            <div class="col-sm-4 textcenter">
                <img class="img-circle img-responsive img-center centerimg" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/300x300-3.png" alt="">
                <h2 class="bangersheader">Marketing Box #3</h2>
                <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
            </div>
        </div>
        <!-- /.row -->

        <hr>
		
		</div>
    <!-- /.container -->

        <!-- Footer -->
        <!-- Footer -->
    <footer class="text-center">
        <div class="footer-above">
            <div class="container">
                <div class="row">
                    <div class="footer-col col-md-4">
                        <h3 class="bangersheader">Location</h3>
                        <p>3301 Cicada Rd. Suite #64
                            <br>Prime, GS 11235-3301</p>
                    </div>
                    <div class="footer-col col-md-4">
                        <h3 class="bangersheader">Around the Web</h3>
                        <ul class="list-inline">
                            <li>
                                <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-facebook"></i></a>
                            </li>
                            <li>
                                <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-google-plus"></i></a>
                            </li>
                            <li>
                                <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-twitter"></i></a>
                            </li>
                            <li>
                                <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-linkedin"></i></a>
                            </li>
                            <li>
                                <a href="#" class="btn-social btn-outline"><i class="fa fa-fw fa-dribbble"></i></a>
                            </li>
                        </ul>
                    </div>
                    <div class="footer-col col-md-4">
                        <h3 class="bangersheader">About Side Scroller</h3>
						<p>Side Scroller is a template developed by <a href="http://terryscrimsher.com">Terry Scrimsher</a>.</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer-below">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12 animated infinite pulse">
                        <span class="amatic" style="font-size: 26px">Copyright &copy; Terry Scrimsher 2017</span>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    


              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Bangers');
@import url('https://fonts.googleapis.com/css?family=Amatic+SC');
@import url('https://fonts.googleapis.com/css?family=Oswald');

body, html {padding: 0; margin: 0; width: 100%; height: 600px; }
body { padding-top: 50px; }

p { font-size: 18px; font-family: 'Oswald', sans-serif;}

h1 {
  margin:0; 
  padding: 0; 
  font-size: 94px; 
  text-align: center; 
  font-family: 'Bangers', cursive; 
  color: #f28f25;
  text-shadow: 2px 2px 5px #000;
  cursor: default;
/*   background-image: -webkit-linear-gradient(92deg,#f35626,#feab3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
}
h3.scrollbanner {
  margin:0; 
  padding: 0; 
  text-align: center; 
  color: #fff; 
  text-shadow: 2px 2px 5px #000; 
  font-family: 'Amatic SC', cursive; 
  font-size: 56px; 
}
h3.scrollbanner:hover { 
  text-shadow: 0px 0px 15px #2588f2;
  -webkit-animation: breathe 2s linear infinite;
  animation: breathe 2s linear infinite; 
  cursor:pointer;
}
.scrollbanner a {color: #fff; text-decoration: none;}

.bangersheader {font-family: 'Bangers', cursive;}
h3.bangersheader {font-size: 42px;}
h4.bangersheader {font-size: 28px;}
.amatic {font-family: 'Amatic SC', cursive;}
h4.amatic {font-size: 34px; font-weight: bold;}

#banner {
  padding: 12% 0 0;
  margin: 0 auto;
  width: 40%;
  min-width: 388px;
}

#horizontal-scroll {
width: 100%;  
height: 100%;  
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/scroll1.png) repeat-x;  
-webkit-animation: backgroundScroll 17s linear infinite;
animation: backgroundScroll 17s linear infinite;  
background-color: #9db9da;  
}

#horizontal-scroll2 {
width: 100%;  
height: 100%;  
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/scroll2.png) repeat-x;  
-webkit-animation: backgroundScroll 22s linear infinite;
animation: backgroundScroll 22s linear infinite;  
}

#horizontal-scroll3 {
width: 100%;  
height: 100%;  
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/221620/scroll3.png) repeat-x;  
-webkit-animation: backgroundScroll 30s linear infinite;
animation: backgroundScroll 30s linear infinite;  
}

@-webkit-keyframes backgroundScroll {
from {background-position: 0 0;}  
to {background-position: -800px 0;}  
}
@keyframes backgroundScroll {
from {background-position: 0 0;}  
to {background-position: -800px 0;}  
}

@-webkit-keyframes breathe {
0% {text-shadow: 0px 0px 15px #2588f2}  
50% {text-shadow: 0px 0px 5px #2588f2} 
100% {text-shadow: 0px 0px 25px #2588f2}  
}
@keyframes breathe {
0% {text-shadow: 0px 0px 15px #000}  
50% {text-shadow: 0px 0px 5px #fff} 
100% {text-shadow: 0px 0px 15px #000}
}



/* Custom Bootstrap Styling */

.navbar-brand { font-family: 'Bangers', cursive; font-size: 42px; }
ul li { font-family: 'Amatic SC', cursive; font-size: 28px; font-weight: bold; }
.nav.navbar-nav {float: right;}

.btn-primary {color: #fff; background-color: #4f3e68; border-color: #4f3e68;}
.btn-primary:hover {color: #fff; background-color: #3e4167; border-color: #3e4167;}

footer .footer-above {padding-top: 50px; padding-bottom: 50px; background-color: #524a7a;}
footer .footer-below {padding: 25px 0; background-color: #4f4167;}
footer {color: #fff;}

a {color: #758ac3}

.textcenter {text-align: center;}
.centerimg {margin: 0 auto;}

/*
.btn-social {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 45px;
}
.btn-outline {
    color: #fff;
    font-size: 20px;
    border: 2px solid #fff;
    background: 0 0;
    transition: all .3s ease-in-out;
    margin-top: 15px;
}*/

@media only screen and (max-width: 520px) {
    .navbar-brand {
        font-size: 20px;
    }
    h1 {font-size: 60px;}
    #banner {
        padding: 12% 0 0;
        margin: 0 auto;
        width: 100%;
        min-width: 0px;
    }
    #horizontal-scroll {
        height: 40%;
    }
}
              
            
!

JS

              
                $.fn.extend({
    animateCss: function (animationName) {
        var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
      
        $(this).addClass('animated ' + animationName).one(animationEnd, function() {
            $(this).removeClass('animated ' + animationName);
        }).one(animationEnd, function() {
            $(this).addClass('displaynone');
        });
      
    }
});

// $('h1').animateCss('pulse');

$('.scrollbanner').mouseover(function() {
  $('.scrollbanner').animateCss('rubberBand');
});

setTimeout(function(){ 
  randomAnimate();
}, 3000);

function randomAnimate () {
  var ranNum = Math.floor((Math.random() * 7) + 1);
    if (ranNum == 1) {
      $('.scrollbanner').animateCss('tada');
    } else if (ranNum == 2) {
      $('.scrollbanner').animateCss('swing');
    } else if (ranNum == 3) {
      $('.scrollbanner').animateCss('shake');
    } else if (ranNum == 4) {
      $('.scrollbanner').animateCss('pulse');
    } else if (ranNum == 5) {
      $('.scrollbanner').animateCss('bounce');
    } else if (ranNum == 6) {
      $('.scrollbanner').animateCss('jello');
    } else {}
  setTimeout(function(){ 
    randomAnimate();
  }, 3000);
}


function getRandomIntInclusive(min, max) {
  min = Math.ceil(min);
  max = Math.floor(max);
  return Math.floor(Math.random() * (max - min + 1)) + min;
}
              
            
!
999px

Console