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

              
                  <h2><b>Image on hover microinteraction-effects</b></h2>
<div class="container-image">

    <img src="http://rollacosta.in/wp-content/uploads/2017/04/dummy-pic.png">
</div>
<div class="body-wrapper">
		<div class="section-1">

			<div class="example-1">
			</div>
      <br>
			<div class="example-1">
			<div class="mahi_holder">
    <div class="container">
      <div class="row bg_1">
        <h2><b>Border microinteraction-effects</b></h2>
        <div class="col-3">
            <input class="microinteraction-effect-1" type="text" placeholder="Placeholder Text">
              <span class="focus-border"></span>
          </div>
        <div class="col-3">
            <input class="microinteraction-effect-9" type="text" placeholder="Placeholder Text">
              <span class="focus-border">
                <i></i>
              </span>
          </div>
      </div> 
      <br><br>
      <div class="row bg_2">
        <h2><b>Background microinteraction-effects</b></h2>
       
        <div class="col-3">
        	<input class="microinteraction-effect-15" type="text" placeholder="Placeholder Text">
            <span class="focus-bg"></span>
        </div>
      </div>
      <div class="row bg_3">
        <h2><b>Input with Label microinteraction-effects</b></h2>
       
        <div class="col-3 input-microinteraction-effect">
        	<input class="microinteraction-effect-20" type="text" placeholder="">
            <label>First Name</label>
            <span class="focus-border">
            	<i></i>
            </span>
        </div>
      </div>
    </div>
</div>
			</div>
		</div>
	</div>
              
            
!

CSS

              
                .container-image {
  width:80%;
  display:flex;
  justify-content:center;
  align-items:center;
  height:500px;
  margin:0 auto
}
.container {
  width:100%;
  height:500px;
  margin:0 auto
}
.container-image img{
  transition:2s;
}
.container-image img:hover {
  transition:2s;
  transform:scale(1.3);
}



 
.h4 {
	font-size:20px;
}
.load-bar {
  position: relative;
  margin-top: 20px;
  width: 100%;
  height: 4px;
  background-color: #fdba2c;
}
.bar {
  content: "";
  display: inline;
  position: absolute;
  width: 0;
  height: 100%;
  left: 50%;
  text-align: center;
}
.bar:nth-child(1) {
  background-color: #da4733;
  animation: loading 3s linear infinite;
}
.bar:nth-child(2) {
  background-color: #3b78e7;
  animation: loading 3s linear 1s infinite;
}
.bar:nth-child(3) {
  background-color: #fdba2c;
  animation: loading 3s linear 2s infinite;
}
@keyframes loading {
    from {left: 50%; width: 0;z-index:100;}
    33.3333% {left: 0; width: 100%;z-index: 10;}
    to {left: 0; width: 100%;}
}

<!-- form submit -->

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -65px;
  margin-top: -20px;
  width: 130px;
  height: 40px;
  text-align: center;
}

button {
  outline: none;
  height: 40px;
  text-align: center;
  width: 130px;
  border-radius: 40px;
  background: #fff;
  border: 2px solid #1ECD97;
  color: #1ECD97;
  letter-spacing: 1px;
  text-shadow: 0;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
}
button:hover {
  color: white;
  background: #1ECD97;
}
button:active {
  letter-spacing: 2px;
}
button:after {
  content: "SUBMIT";
}

.onclic {
  width: 40px;
  border-color: #bbbbbb;
  border-width: 3px;
  font-size: 0;
  border-left-color: #1ECD97;
  -webkit-animation: rotating 2s 0.25s linear infinite;
          animation: rotating 2s 0.25s linear infinite;
}
.onclic:after {
  content: "";
}
.onclic:hover {
  color: #1ECD97;
  background: white;
}

.validate {
  font-size: 13px;
  color: white;
  background: #1ECD97;
}
.validate:after {
  font-family: 'FontAwesome';
  content: "\f00c";
}

@-webkit-keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

<!-- input fields -->
@import url('https://fonts.googleapis.com/css?family=Damion|Muli:400,600');
body{
  font-family: 'Muli', sans-serif;
}
h2 {
    font-weight: 400;
    color: #ed1c24;
    font-size: 35px;
    text-align: center;
    position: relative;
	float:left;
	width:100%;
}
h2:before {
    position: absolute;
    content: '';
    width: 100%;
    left: 0;
    top: 22px;
    background: #3f51b5;
    height: 1px;
}
h2 b {
    font-style: normal;
    background: #fff;
    position: relative;
    padding: 10px;
}
:focus{outline: none;}

/* necessary to give position: relative to parent. */
input[type="text"]{font: 15px/24px 'Muli', sans-serif; color: #333; width: 100%; box-sizing: border-box; letter-spacing: 1px;}

:focus{outline: none;}

.col-3{float: left; width: 27.33%; margin: 40px 3%; position: relative;} /* necessary to give position: relative to parent. */
input[type="text"]{font: 15px/24px "Lato", Arial, sans-serif; color: #333; width: 100%; box-sizing: border-box; letter-spacing: 1px;}

.microinteraction-effect-1{border: 0; padding: 7px 0; border-bottom: 1px solid #ccc;}

.microinteraction-effect-1 ~ .focus-border{position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #3f51b5; transition: 0.4s;}
.microinteraction-effect-1:focus ~ .focus-border{width: 100%; transition: 0.4s;}

.microinteraction-effect-9{border: 1px solid #ccc; padding: 7px 14px 9px; transition: 0.4s;}


.microinteraction-effect-9 ~ .focus-border:before,
.microinteraction-effect-9 ~ .focus-border:after{content: ""; position: absolute; top: 0; right: 0; width: 0; height: 2px; background-color: #3f51b5; transition: 0.2s; transition-delay: 0.2s;}
.microinteraction-effect-9 ~ .focus-border:after{top: auto; bottom: 0; right: auto; left: 0; transition-delay: 0.6s;}
.microinteraction-effect-9 ~ .focus-border i:before,
.microinteraction-effect-9 ~ .focus-border i:after{content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 0; background-color: #3f51b5; transition: 0.2s;}
.microinteraction-effect-9 ~ .focus-border i:after{left: auto; right: 0; top: auto; bottom: 0; transition-delay: 0.4s;}
.microinteraction-effect-9:focus ~ .focus-border:before,
.microinteraction-effect-9:focus ~ .focus-border:after{width: 100%; transition: 0.2s; transition-delay: 0.6s;}
.microinteraction-effect-9:focus ~ .focus-border:after{transition-delay: 0.2s;}
.microinteraction-effect-9:focus ~ .focus-border i:before,
.microinteraction-effect-9:focus ~ .focus-border i:after{height: 100%; transition: 0.2s;}
.microinteraction-effect-9:focus ~ .focus-border i:after{transition-delay: 0.4s;}

.microinteraction-effect-15{border: 0; padding: 7px 15px; border: 1px solid #ccc; position: relative; background: transparent;}


.microinteraction-effect-15 ~ .focus-bg:before,
.microinteraction-effect-15 ~ .focus-bg:after{content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; background-color: #ededed; transition: 0.3s; z-index: -1;}
.microinteraction-effect-15:focus ~ .focus-bg:before{transition: 0.3s; width: 50%; left: 0; top: 0; height: 100%;}
.microinteraction-effect-15 ~ .focus-bg:after{left: auto; right: 50%; top: auto; bottom: 50%;}
.microinteraction-effect-15:focus ~ .focus-bg:after{transition: 0.3s; width: 50%; height: 100%; bottom: 0; right: 0;}


.microinteraction-effect-20{border: 1px solid #ccc; padding: 7px 14px; transition: 0.4s; background: transparent;}


.microinteraction-effect-20 ~ .focus-border:before,
.microinteraction-effect-20 ~ .focus-border:after{content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background-color: #3f51b5; transition: 0.3s;}
.microinteraction-effect-20 ~ .focus-border:after{top: auto; bottom: 0; left: auto; right: 0;}
.microinteraction-effect-20 ~ .focus-border i:before,
.microinteraction-effect-20 ~ .focus-border i:after{content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 0; background-color: #3f51b5; transition: 0.4s;}
.microinteraction-effect-20 ~ .focus-border i:after{left: auto; right: 0; top: auto; bottom: 0;}
.microinteraction-effect-20:focus ~ .focus-border:before,
.microinteraction-effect-20:focus ~ .focus-border:after,
.has-content.microinteraction-effect-20 ~ .focus-border:before,
.has-content.microinteraction-effect-20 ~ .focus-border:after{width: 100%; transition: 0.3s;}
.microinteraction-effect-20:focus ~ .focus-border i:before,
.microinteraction-effect-20:focus ~ .focus-border i:after,
.has-content.microinteraction-effect-20 ~ .focus-border i:before,
.has-content.microinteraction-effect-20 ~ .focus-border i:after{height: 100%; transition: 0.4s;}
.microinteraction-effect-20 ~ label{position: absolute; left: 14px; width: 100%; top: 10px; color: #aaa; transition: 0.3s; z-index: -1; letter-spacing: 0.5px;}
.microinteraction-effect-20:focus ~ label, .has-content.microinteraction-effect-20 ~ label{top: -18px; left: 0; font-size: 12px; color: #3f51b5; transition: 0.3s;}


              
            
!

JS

              
                
              
            
!
999px

Console