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-fluid"> 
  <div class="card-deck mt-5">
    <div class="card">
      <div class="card-block">
        <h4 class="card-title text-right icon"><i class="material-icons">settings</i></h4>
        <img src="https://static.pexels.com/photos/36717/amazing-animal-beautiful-beautifull.jpg">
        <h4 class="card-title mt-2">Card 1</h4>
        <p class="card-text">Hello Card 1, Nice to see you</p>       
      </div>        
    </div>
    <div class="card">
      <div class="card-block">
        <h4 class="card-title text-right icon"><i class="material-icons" data-toggle="modal" data-target="#flipflop">settings</i></h4>
        <img src="https://static.pexels.com/photos/115045/pexels-photo-115045.jpeg">
        <h4 class="card-title mt-2">Card 2</h4>
        <p class="card-text">Hello Card 2, Nice to see you</p>       
      </div>
    </div>
    <div class="card">
      <div class="card-block">
        <h4 class="card-title text-right icon"><i class="material-icons" data-toggle="modal" data-target="#card-3">settings</i></h4>
        <img src="https://static.pexels.com/photos/306803/pexels-photo-306803.jpeg">
        <h4 class="card-title mt-2">Card 3</h4>
        <p class="card-text">Hello Card 3, Nice to see you, you should look bigger than the card 1 and card 2. please <strong class="animated-text">click on cog icon</strong> for form modal</p>
      </div>
    </div>
    <div class="card">
      <div class="card-block">
        <h4 class="card-title text-right icon"><i class="material-icons">settings</i></h4>
        <img src="https://static.pexels.com/photos/115045/pexels-photo-115045.jpeg">
        <h4 class="card-title mt-2">Card 4</h4>
        <p class="card-text">Hello Card 4, Nice to see you</p>       
      </div>
    </div>
    <div class="card">
      <div class="card-block">
        <h4 class="card-title text-right icon"><i class="material-icons">settings</i></h4>
        <img src="https://static.pexels.com/photos/306803/pexels-photo-306803.jpeg">
        <h4 class="card-title mt-2">Card 5</h4>
        <p class="card-text">Hello Card 5, Nice to see you, you should look bigger than the card 1 and card 2. please improve</p>
      </div>
    </div>
    
  </div>
</div>
<div class="modal animated bounceInLeft" id="card-3" tabindex="-1" role="dialog" arialabelledby="modallabelsmall" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
       <h6 class="modal-title">Create Organization</h6>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true" class="close">&times;</span>
        </button>
      </div> 
      <div class="modal-body">
        <form>
          <div class="container-fluid">
            <div class="row">              
              <div class="col-lg-10 col-md-12">
                <div class="form-group row">
                  <label for="first_name" class="col-3 col-form-label">Name</label>
                  <div class="col-9">
                    <input type="text" class="form-control" id="first_name" name="first_name">
                  </div>
                </div>
                <div class="form-group row">
                  <label for="alias" class="col-3 col-form-label">Alias</label>
                  <div class="col-9">
                    <input type="text" class="form-control" id="org_type" name="org_type">
                  </div>
                </div>
                <div class="form-group row">
                  <label for="org_type" class="col-3 col-form-label">Type</label>
                  <div class="col-9">
                    <input type="text" class="form-control" id="org_type" name="org_type">
                  </div>
                </div>                
              </div>
              <div class="col-2 modal-logo hidden-md-down">
                <img src="https://static.pexels.com/photos/306803/pexels-photo-306803.jpeg">
                <div class="ovrly"></div>
                <div class="img-buttons">
                  <a role="button"><i class="material-icons">file_upload</i></a>
                  <a role="button"><i class="material-icons">delete_forever</i></a>                
                </div>
              </div>
            </div>
             <div class="form-group row">
               <label for="description" class="col-2 col-form-label">Description</label>
                <div class="col-9 ml-5">
                  <textarea class="form-control" id="description" rows="3"></textarea>
               </div>
            </div>           
            <div class="form-group row">
              <label for="address1" class="col-2 col-form-label">Address</label>
              <div class="col-9 ml-5">
                <input type="text" class="form-control" id="address1" name="address1">
              </div>
            </div>
            <div class="row">
              <div class="col-md-8 col-xs-12">
               <div class="form-group row">
                <label for="address2" class="col-3 col-form-label">Address 2</label>
                <div class="col-7 ml-lg-5">
                  <input type="text" class="form-control" id="address2" name="address2">
                </div>
               </div>
              </div>
              <div class="col-md-4 col-xs-12">
               <div class="form-group row">
                <label for="city" class="col-md-4 col-sm-3 col-form-label text-lg-right">City</label>
                <div class="col-7">
                  <input type="text" class="form-control" id="city" name="city">
                </div>
               </div>
              </div>
              
            </div>
            <div class="row">
              <div class="col-md-8 col-xs-12">
               <div class="form-group row">
                <label for="State" class="col-3 col-form-label">State</label>
                <div class="col-7 ml-lg-5">
                  <input type="text" class="form-control" id="State" name="State">
                </div>
               </div>
              </div>
              <div class="col-md-4 col-xs-12">
               <div class="form-group row">
                <label for="zipcode" class="col-md-4 col-sm-3 col-form-label text-lg-right">Zip</label>
                <div class="col-7">
                  <input type="text" class="form-control" id="zipcode" name="zipcode">
                </div>
               </div>
              </div>
              
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer"> 
        <button class="btn btn-primary save">SAVE</button>
      </div>
    </div>
  </div>
</div>


              
            
!

CSS

              
                img{
  height:200px;
  width:100%;
}
.icon i{
  font-size:20px;
  color:#ffa710;
  cursor:pointer;
  transition:all .4s ease-in;
}
.card{
  cursor:pointer;
  transition:all .4s ease-in-out;
}
.card:hover{
  transform:scale(1.05);
  box-shadow:10px 10px 10px #888888;
}
.icon i:hover{
  transform:scale(1.25) rotate(100deg);
  color:#18d4ca;
}

.close{
  color:#ffa710;
  opacity:1;
}
.modal-lg{
  max-width:1200px;
}
.save{
  background-color: #667df3;
  font-size:14px;
}
.form-control::placeholder{
/*   font-size:14px; */
  opacity:.5;
}
.modal-logo img{
  width:100%;
  height:150px
}
.col-form-label{
  font-weight:500;
}
.ovrly {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
     height:150px;
    left: 1;
    top: 0;
    width: 85%;
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
  }
 .modal-logo:hover .ovrly {
    opacity: 1;
  }
.img-buttons {
  position: absolute;
    top: 50%;
    left: 50%;
   -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.img-buttons .material-icons{
  opacity: 0;
  color: rgba(50, 50, 50, 0.9);
  background: rgb(256, 256, 256);
  font-size: 30px;
      text-align: center;
      text-decoration: none;
  border-radius: 50%;
}
.modal-logo:hover .img-buttons .material-icons{
    opacity: 1;
  }
/* MODAL ANIMATION */

@keyframes bounce {
  from, 20%, 53%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    transform: translate3d(0,0,0);
  }

  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -30px, 0);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -15px, 0);
  }

  90% {
    transform: translate3d(0,-4px,0);
  }
}


.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.bounce {
  animation-name: bounce;
  transform-origin: center bottom;
}
@keyframes bounceInLeft {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }

  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }

  75% {
    transform: translate3d(-10px, 0, 0);
  }

  90% {
    transform: translate3d(5px, 0, 0);    
  }

  to {
    transform: none;
  }
}

.bounceInLeft {
  animation-name: bounceInLeft;
}

/* animated text */
.animated-text{
  animation: changefontcolor 2s ease-in-out infinite;
}
@keyframes changefontcolor {
  0%{
    color:black;
  }
  50%{
    color:red;
  }
  100%{
    color:purple;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console