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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>     

          <div class="col-lg-12 row rows">
                <div class="col-lg-4 Sony">
                    <div class="item-inner jumbotron">
                    <h4>Sony</h4>
                     <div class="fonts"><i class="fa fa-strikethrough fa-5x element2" aria-hidden="true"></i></div>
                    <button type="button" class="btn btn-info element" data-toggle="collapse" data-target="#demo">Info...</button>
                    <div id="demo" class="collapse">
                     info...</div>
                    </div>
                </div>
                <div class="col-lg-4">
                 <div class="item-inner jumbotron">
                  <h4>Microsoft</h4>
                    <div class="fonts"><i class="fa fa-windows fa-5x element2" aria-hidden="true"></i></div>
                    <button type="button" class="btn btn-info element" data-toggle="collapse" data-target="#demo1">Info...</button>
                    <div id="demo1" class="collapse">Info... </div>
                    </div>
                </div>
                <div class="col-lg-4">
                 <div class="item-inner jumbotron">
                  <h4>Google</h4>
                    <div class="fonts"><i class="fa fa-google fa-5x element2" aria-hidden="true"></i></div>
                    <button type="button" class="btn btn-info element" data-toggle="collapse" data-target="#demo2">Info...</button>
                    <div id="demo2" class="collapse">Info...</div>
                    </div>
                </div> 
                <div class='col-lg-4 pull-left'>
                    <div class='item-inner jumbotron Oculus'><h4>Oculus Rift</h4> 
                    <div class='fonts'><i class='fa fa-facebook-square fa-5x element2' aria-hidden='true'></i></div>
                    <button type='button' class='btn btn-info element' data-toggle='collapse' data-target='#demo3'>Info...</button>
                     <div id='demo3' class='collapse'> Soon...</div>
                </div></div>
              
          </div>
          <div class="row justify-content-md-center">
          <p><button class="Volgende btn btn-primary centered">Klik hier om de volgende te zien!</button></p>
          </div>

<script>
    window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')
</script>
<script src="js/tether.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="js/bootstrap.js"></script>
              
            
!

CSS

              
                p{
    text-align:justify;
}
.item-inner{

    font-size:15px;
}
.fonts{
    text-align: center;
    padding-top:20px;
    padding-bottom: 20px;
}
.Volgende{
    background-color: #2e81f8;
}
.element{
    -webkit-animation-name: example;
    -webkit-animation-duration: 4s; 
    animation-name: random;
    animation-duration: 2s;
     position: relative;
    background-color:#808292;
    margin-top:15px;
}
.element:hover{
    border-color: #EEECEE;
    border-width: 2.5px;
    background-color:#808292;
}
.Oculus{
        display:none;
}
@-webkit-keyframes random {
    0%   {background-color:#EEECEE; left:0px; top:0px;}
    100%  {background-color:#808292; left:200px; top:0px;}
}
.element2{
    transform: scale(1.2);
}
.highLight{
    animation-name: random2;
    animation-duration: 5s;
}
@-webkit-keyframes random2 {
    0% {
        background-color: #808292;
    }
    100%{
        background-color:#2e81f8;
    }
}
              
            
!

JS

              
                 $(function() {
    $('.Volgende').click(function() 
        { 
          if ($(this).text() == "Klik hier om de volgende te zien!") 
          { 
             $(this).text("Klik hier om de vorige te zien!");
               $('.Sony').animate({
               opacity: 0, 
               marginLeft: '-200px'
           }, 'slow', 'linear', function() {
               $(this).hide();
        });
        $('.Oculus').animate({
                opacity: 100, 
                marginRight: '0px'
        }, 'slow', 'linear', function() {
            $(this).fadeIn();
        });
              $('.jumbotron').last().addClass('highLight');
          } 
          else 
          { 
             $(this).text("Klik hier om de volgende te zien!");
               $('.Oculus').animate({
                    opacity: 0, 
                    marginRight: '-200px'
                    }, 'slow', 'linear', function() {
                    $(this).hide();
        });
         $('.Sony').animate({
                    opacity: 100, 
                    marginLeft: '0px'
                    }, 'slow', 'linear', function() {
                    $(this).fadeIn(2000);
        });
              $('.jumbotron').first().addClass('highLight');
          }; 
    });
   });
              
            
!
999px

Console