cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <a href="https://dribbble.com/shots/2602146-AppConnecting-Animation" class="inspire">Inspire from :Dribble</a>

<div class="container">
  <span class="icon left">
    <i class="fa fa-angle-left" aria-hidden="true">
    </i>
  </span>
  <span class="icon right">
    <i class="fa fa-envelope-o" aria-hidden="true">
    </i>
  </span>
  <div style="clear:both;"></div>
  <div class="img-profile">
    <img src="https://randomuser.me/api/portraits/women/63.jpg">
  </div>
  <div class="heading">
    <h3 class="name">Brandy Owens</h3>
    <h4 class="business">CEO</h4>

    <h4 class="status">meeting</h4>
  </div>
  <span class="information">
    <p>22.05.2015 , Room A</p>
  </span>
  <div class="buttons">
    <button class="accept">
      accept
    </button>
    <button class="cancel">
      cancel
    </button>
  </div>
  <ul class="menu">
    <li>
      <span>
        <i class="fa fa-user-o" aria-hidden="true"></i>
      </span>
    </li>
    <li>
      <span>
        <i class="fa fa-envelope-o" aria-hidden="true">
    </i>
      </span>
    </li>
    <li>
      <span>
        <i class="fa fa-calendar" aria-hidden="true"></i>
      </span>
    </li>
    <li>
      <span>
        <i class="fa fa-map-o" aria-hidden="true"></i>
      </span>
    </li>
        <li>
      <span>
        <i class="fa fa-phone" aria-hidden="true"></i>
      </span>
    </li>
  </ul>
  
  <div class="submit">
   <span class="success">
     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 52 52" style="enable-background:new 0 0 52 52;" xml:space="preserve" width="512px" height="512px">
<g>
	<path fill="#FFFFFF" d="M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26   S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"/>
	<path d="M38.252,15.336l-15.369,17.29l-9.259-7.407c-0.43-0.345-1.061-0.274-1.405,0.156c-0.345,0.432-0.275,1.061,0.156,1.406   l10,8C22.559,34.928,22.78,35,23,35c0.276,0,0.551-0.114,0.748-0.336l16-18c0.367-0.412,0.33-1.045-0.083-1.411   C39.251,14.885,38.62,14.922,38.252,15.336z" fill="#FFFFFF"/>
</g>
</svg>
    </span>
    <span class="close">
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="512px" version="1.1" height="512px" viewBox="0 0 64 64" enable-background="new 0 0 64 64">
  <g>
    <path fill="#FFFFFF" d="M28.941,31.786L0.613,60.114c-0.787,0.787-0.787,2.062,0,2.849c0.393,0.394,0.909,0.59,1.424,0.59   c0.516,0,1.031-0.196,1.424-0.59l28.541-28.541l28.541,28.541c0.394,0.394,0.909,0.59,1.424,0.59c0.515,0,1.031-0.196,1.424-0.59   c0.787-0.787,0.787-2.062,0-2.849L35.064,31.786L63.41,3.438c0.787-0.787,0.787-2.062,0-2.849c-0.787-0.786-2.062-0.786-2.848,0   L32.003,29.15L3.441,0.59c-0.787-0.786-2.061-0.786-2.848,0c-0.787,0.787-0.787,2.062,0,2.849L28.941,31.786z"/>
  </g>
</svg>
    </span>
  </div>
</div>
            
          
!
            
              $body_color: #03a9f4;
$prefixes: ("webkit", "moz", "ms", "o");
$container-width : 400px;
$delay : 2000ms;
@mixin prefix($property,$value) {
  @each $prefix in $prefixes {
    #{'-'+$prefix+'-'+$property}: $value;
  }
  #{$property}: $value;
}

*{
  margin:0;
  padding:0;
  @include prefix(box-sizing , border-box);
}


body{
  background-color:$body_color;
  font-family: 'Open Sans', sans-serif;
}

.inspire{
  color:#fff;
  text-decoration:none;
  text-transform:capitalize;
  font-size:1.8em;
  font-weight:lighter;
  padding:80px;
  margin:80px;
  position:relative;
  top:80px;
}

.container{
  width:400px;
  height:630px;
  display:block;
  background:#fff;
  margin:20% auto;
  overflow:hidden;
  border-radius:3px;
  max-width:100%;
  position:relative;
  @include prefix(transition,.5s);
}

/*------- icons -----------*/
.icon{
  display:inline-block;
  font-size:1.5em;
  color:#ccc;
  position:absolute; 
  @include prefix(transition,.5s);
}

.right{
    right:30px;
    top: 30px;
 }
 .left{
    left:30px;
    top: 30px;
 }


/*--------- image profile ------------*/
.img-profile{
  position:relative;
  margin:25% auto;
  width:90px;
  height:90px;
  z-index:999;
  @include prefix(transition,.5s);
  img{
    border-radius:50%;
    max-width:100%;
  }
  &:before{
    position:absolute;
    content:'';
    display:block;
    width:120px;
    height:120px;
    background-color:$body_color;
    border-radius:50%;
    top:-16%;
    left:-16%;
    z-index:-1;
    @include prefix(transition,.5s);
    @include prefix(animation,animation2 .8s cubic-bezier(0.77, 0, 0.175, 1) $delay
      alternate infinite);
  }
  &:after{
    position:absolute;
    content:'';
    display:block;
    width:150px;
    height:150px;
    background-color:$body_color;
    border-radius:50%;
    opacity:.5;
    top:-33%;
    left:-33%;
    z-index:-3;
    @include prefix(animation,animation1 .8s 
      cubic-bezier(0.77, 0, 0.175, 1)  $delay
      alternate infinite);
    @include prefix(transition,.5s);
  }
}

.heading{
  text-align:center;
  @include prefix(transition,.5s);
}

.name{
  text-transform:capitalize;
  color:#383838;
}

.business{
  color:#c0c0c0;
  font-weight:lighter;
}

.status{
  padding-top:18px;
  color:$body_color;
  position:relative;
  text-transform:capitalize;
  &:before{
    content:'';
    display:block;
    position:absolute;
    top:28px;
    left:48px;
    width:95px;
    height:1px;
    background:#ccc;
    opacity:.7;
    @include prefix(transition,.5s);
  }
  &:after{
      content:'';
      display:block;
      position:absolute;
      top:28px;
      right:48px;
      width:95px;
      height:1px;
      background:#ccc;
      opacity:.7;
      @include prefix(transition,.5s);
  }
}


.information{
  display:block;
  text-align:center;
  color:#ccc;
  padding:50px;
  @include prefix(transition,.5s);
}

.buttons{
  display:block;
  width:90%;
  margin:-20px 35px 15px 35px;
}

button{
    text-transform:capitalize;
    border:none;
    width:120px;
    height:40px;
    margin:20px;
    border-radius:50px;
    font-family: 'Open Sans', sans-serif;
    &:focus,
    &:active:focus{
    outline:none;
  }
}



.accept{
  color:#fff;
  background:$body_color;
  @include prefix(transform,scale(0));
  @include prefix(box-shadow,0px 8px 8px rgba(1, 177, 211,.3));
  @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1));
}

.cancel{
  background:transparent;
  border:1px solid #ddd;
  color:#ccc;
  @include prefix(transform,scale(0));
  @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1));
}



.menu{
  position:relative;
  display:block;
  width:100%;
  height:50px;
  overflow:hidden;
  list-style:none;
  &:before{
    content:'';
    display:block;
    width:100%;
    height:1px;
    position:absolute;
    top:0;
    left:0;
    background:#ccc;
    @include prefix(transition,.5s);
  }
  li{
    display:inline-block;
    text-align:center;
    width:$container-width / 6;
    height:40px;
    line-height:40px;
    margin:5px;
    color:#ccc;
    font-size:1.2em;
    @include prefix(transition,.5s);
  }
}

.icon,
.img-profile,
.heading,
.information,
.buttons .accept,
.buttons .cancel,
.menu,
.menu li
{
  @include prefix(transform,scale(0));
  @include prefix(transition,.5s);
}


/*----------- add new Class 'show' -----*/ 
.icon,
.img-profile,
.heading,
.information,
.buttons .accept,
.buttons .cancel,
.menu,
.menu > li{
    &.show{
      @include  prefix(transform,scale(1));
     }
}


.icon{
  &.show{
    @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+0.5s);
    &:hover{
      cursor:pointer;
    }
  }
}
.img-profile{
  &.show{
    @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+1s);
  }
}

.heading{
  &.show{
    @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+1.5s);
  }
}

.information{
  &.show{
    @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+2s);
  }
}

.buttons{
  .accept{
    &.show{
      @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+3s);
      &:hover{
      cursor:pointer;
     }
    }
  }
  .cancel{
    &.show{
      @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+3.5s);
      &:hover{
      cursor:pointer;
     }
    }
  }
}



.menu {
  @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+4s);
   @for $i from 1 through 5 {
     li:nth-child(#{$i}){
       &.show{
          @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+4.4s+$i);
       }
     }
   }
}







.submit{
  position:absolute;
  display:block;
  width:0px;
  height:0px;
  background:rgba(3,169,244,.9);
  border-radius:50%;
  z-index:1;
  top:80%;
  left:80px;
  overflow:hidden;
  @include prefix(transform,scale(1));
  @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1));
  &.overlay{
    position:absolute;
    top:0;
    left:0;
    z-index:999;
    width:100%;
    height:100%;
    border-radius:0;
    @include prefix(transition,all .5s 
      cubic-bezier(0.77, 0, 0.175, 1));
  }
  .close{
    svg{
      width:24px;
      height:24px;
      position:absolute;
      right:20px;
      top:20px;
      opacity:0;
      @include prefix(transform,scale(0) rotate(0));
      @include prefix(transition,.5s);
    }
  }
  .success{
    svg{
      width:80px;
      height:80px;
      margin:50% 40%;
      opacity:0;
      @include prefix(transform,scale(0));
      @include prefix(transition,.5s);
    } 
  }
  .success{
      &.growing{
        svg{
          opacity:1;
          @include prefix(transform,scale(1));
          @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay);
        }
    }
  }
  .close{
    &.growing{
      svg{
        opacity:1;
        @include prefix(transform,scale(1) rotate(360deg));
      @include prefix(transition,all .5s cubic-bezier(0.77, 0, 0.175, 1) $delay+.4s);
        &:hover{
          cursor:pointer;
        }
      }
    }
  }
}








/*------- animation----------*/
@-webkit-keyframes animation1{
  0%{
    @include prefix(transform,scale(1));
  }
  100%{
    @include prefix(transform,scale(1.2));
  }
}

@-webkit-keyframes animation2{
  0%{
    @include prefix(transform,scale(.8));
  }
  100%{
    @include prefix(transform,scale(1.2));
  }
}


@keyframes grow{
  0%{
    @include prefix(transform,scale(1));
  }
  100%{
    @include prefix(transform,scale(1.2));
  }
}

@keyframes grow2{
  0%{
    @include prefix(transform,scale(.8));
  }
  100%{
    @include prefix(transform,scale(1.2));
  }
}
            
          
!
            
              $(document).ready(function(){
  
  $('.icon , .img-profile, .heading, .information, .buttons .accept, .buttons .cancel,.menu ,.menu li').addClass('show');
 
  var accept_button = $('.container .buttons').children('.accept'),
      close_button = $('.container .submit').
                    children('.close');
          
  

  accept_button.on('click',function(){
     var submit = accept_button.parent().siblings('.submit');
            submit.addClass('overlay');
            submit.children('.close').addClass('growing');
            submit.children('.success').addClass('growing');  
     }); 
  
    
  

   close_button.on('click',function(){
     var submit = accept_button.parent().siblings('.submit');
      /*----- hide the blue window ------*/
      submit.removeClass('overlay');  
     /*------- hide the close button ----*/
     submit.children('.close').removeClass('growing');  
     /*------- hide the success icon ----*/
     submit.children('.success').removeClass('growing');
   });    
});
            
          
!
999px
Loading ..................

Console