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

              
                <button type="button" class="btn btn-primary">Open modal</button>


<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="exampleModalLabel"> modal's pissing me off</h4>
      </div>
      <div class="modal-body">
          <div class="col-md-6">
            <div id="expert-grid" class="expert-grid">
              <ul class="expert-grid">
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/45.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/26.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/32.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/54.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/55.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/44.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/33.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/22.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/18.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/17.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/16.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/15.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/14.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/13.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/1.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/18.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/17.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/16.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/15.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/14.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/13.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/13.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/12.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/11.jpg" alt=""></a></li>
                <li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/19.jpg" alt=""></a></li><li><a href="#"><img src="https://randomuser.me/api/portraits/thumb/women/11.jpg" alt=""></a></li>
              </ul>
            </div>
        </div>
          <div class="col-md-6">
            <p>form goes here</p>
          </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
      
  
      

              
            
!

CSS

              
                .expert-grid{
	margin: 30px auto 30px;
	position: relative;
	height: auto;
}

.expert-grid ul {
	list-style: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Clear floats by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */

.expert-grid ul:before,
.expert-grid ul:after{
	content: '';
    display: table;
}

.expert-grid ul:after {
    clear: both;
}

.expert-grid ul {
    zoom: 1; /* For IE 6/7 (trigger hasLayout) */
} 

.expert-grid ul li {
	-webkit-perspective: 400px;
	-moz-perspective: 400px;
	-o-perspective: 400px;
	-ms-perspective: 400px;
	perspective: 400px;	
	margin: 0;
	padding: 0;
	float: left;
	position: relative;
	display: block;
	overflow: hidden;
	background: #000;
}

.expert-grid ul li a{
	display: block;
	outline: none;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-o-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #333;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

/* Grid wrapper sizes */
.expert-grid-size-1{
	width: 55%;
}
.expert-grid-size-2{
	width: 100%;
}
.expert-grid-size-3{
	width: 100%;
	margin-top: 0px;
}

/* Shadow style */
.ri-shadow:after,
.ri-shadow:before{
	content: "";
	position: absolute;
	z-index: -2;
	bottom: 15px;
	left: 10px;
	width: 50%;
	height: 20%;
	max-width: 300px;
	max-height: 100px;
	box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
	-webkit-transform: rotate(-3deg);
	-moz-transform: rotate(-3deg);
	-ms-transform: rotate(-3deg);
	-o-transform: rotate(-3deg);
	transform: rotate(-3deg);
}
.ri-shadow:after{
	right: 10px;
	left: auto;
	-webkit-transform: rotate(3deg);
	-moz-transform: rotate(3deg);
	-ms-transform: rotate(3deg);
	-o-transform: rotate(3deg);
	transform: rotate(3deg);
}

.expert-grid-loading:after,
.expert-grid-loading:before{
	display: none;
}

.ri-loading-image{
	display: none;
}

.expert-grid-loading .ri-loading-image{
	position: relative;
	width: 30px;
	height: 30px;
	left: 50%;
	margin: 100px 0 0 -15px;
	display: block;
}
              
            
!

JS

              
                $(function() {
  
			$('.btn').click(function(event) {
            event.preventDefault();
            $('#exampleModal').modal();
          console.log('clicked');
      });
  
				$( '#expert-grid' ).gridrotator( {
					rows		: 3,
					columns		: 3,
					animType	: 'fadeInOut',
					animSpeed	: 1000,
					interval	: 600,
					step		: 1,
					w320		: {
						rows	: 3,
						columns	: 3
					},
					w240		: {
						rows	: 3,
						columns	: 3
					}
				} );
			
			});
              
            
!
999px

Console