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.

            
              <!-- Bounce Effect CCS3 -->

<nav>
	<ul>
   	<li><a href="default" class="default active">Default</a></li>
		<li><a href="water"  class="water">Water</a></li>
		<li><a href="concrete"  class="concrete">Concrete</a></li>
		<li><a href="tranpoline"  class="tranpoline">Tranpoline</a></li>
    <li><a href="jelly"  class="jelly">Jelly</a></li>
		<li><a href="ice-cream"  class="ice-cream">Ice Cream</a></li>
	</ul>
</nav>

<div class="blocks">
	<div id="block" class="default"></div>
</div>
            
          
!
            
              /*
Bouce Effect CSS3
Author: Jonathan Silva
Author Url: https://portfolio.jonathansilva.com.br
CpUrl: https://codepen.io/jonathansilva
*/

body {
  font-family: 'Oswald';
  font-weight: 300;
  background: #F0F6FF;
}

.blocks {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  margin-left: -50px;
  
  &:after{
    content: "";
    display: block;
    position: absolute;
    width: 200px;
    height: 20px;
    margin-left: -50px;
    background: rgba(20, 20, 20, 0.1);
    border-radius: 50%;
    bottom: -10px;
    z-index: 1
  }
}
  
#block{
  width: 100px;
  height: 100px;
  border-radius: 5px;
  background-color: #ff00CC;
  position: relative;
  z-index: 2;

	&.default {
    -webkit-animation: bounce 1s;
  }
  
	&.water {
		-webkit-animation: water 2s;
  }

  &.concrete {
		-webkit-animation: concrete 1s;
  }

  &.tranpoline{
		-webkit-animation: tranpoline 2s;
  }
  
  &.jelly{
		-webkit-animation: jelly 3s;
  }
  
  &.ice-cream{
		-webkit-animation: ice-cream 1s;
  }
}


nav {
  width: 100px;
  ul {
    padding: 0;
    li {
      display: inline-block;
      width: 100%;
      a{
        display: block;
        padding:5px 10px;
        font-size: 14px;
        border-radius: 2px;
        cursor: pointer;
        text-decoration: none;
        color: #888;
        
        &.active, 
        &.active:hover{
          background: rgba(39, 174, 244, 1);
          color: #fff;
        }
        
        &:hover {
          background: rgba(39, 174, 244, 0.2);
        }
      }
      
      
      
    }
  }
}


@-webkit-keyframes bounce {
  0%   { -webkit-transform: translateY(-200%); }
  5%   { -webkit-transform: translateY(-200%); }
  15%  { -webkit-transform: translateY(0%); }
  30%   { -webkit-transform: translateY(-30%); }
  40%   { -webkit-transform: translateY(0%); }
  50%   { -webkit-transform: translateY(-15%); }
  60%   { -webkit-transform: translateY(0%); }
  80%   { -webkit-transform: translateY(0%); }
  100% { -webkit-transform: translateY(0%); }
}

@-webkit-keyframes water {
  0%   { -webkit-transform: translateY(-200%); }
  5%   { -webkit-transform: translateY(-200%); }
  10%  { -webkit-transform: translateY(0%); }
  25%   { -webkit-transform: translateY(-20%); }
  40%   { -webkit-transform: translateY(0%); }
  50%   { -webkit-transform: translateY(-5%); }
  60%   { -webkit-transform: translateY(0%); }
  80%   { -webkit-transform: translateY(0%); }
  100% { -webkit-transform: translateY(0%); }
}

@-webkit-keyframes concrete {
  0%   { -webkit-transform: translateY(-200%); }
  5%   { -webkit-transform: translateY(-200%); }
  7%  { -webkit-transform: translateY(0%); }
  20%   { -webkit-transform: translateY(-30%); }
  30%   { -webkit-transform: translateY(0%); }
  50%   { -webkit-transform: translateY(0%); }
  60%   { -webkit-transform: translateY(0%); }
  80%   { -webkit-transform: translateY(0%); }
  100% { -webkit-transform: translateY(0%); }
}

@-webkit-keyframes tranpoline {
  0%   { -webkit-transform: translateY(-200%); }
  10%  { -webkit-transform: translateY(100%); }
  25%   { -webkit-transform: translateY(-70%); }
  40%   { -webkit-transform: translateY(60%); }
  55%   { -webkit-transform: translateY(-30%); }
  70%   { -webkit-transform: translateY(0%); }
  100% { -webkit-transform: translateY(0%); }
}

@-webkit-keyframes jelly {
  0%   { -webkit-transform: translateY(-200%); }
  5%  { -webkit-transform: translateY(0%) scale(1, 1); }
  8%   { -webkit-transform: translateY(0%) scale(1, 0.8) }
  15%   { -webkit-transform: translateY(-30%) scale(1, 1.2); }
  35%   { -webkit-transform: translateY(-66%) scale(1, 1.0); }
  40%   { -webkit-transform: translateY(0%) scale(1, 0.8); }
  50%   { -webkit-transform: translateY(0%) scale(1, 1);}
  99% { -webkit-transform: translateY(0%); }
}

@-webkit-keyframes ice-cream {
  0%   { -webkit-transform: translateY(-200%); }
  5%   { -webkit-transform: translateY(-200%); }
  15%   { -webkit-transform: translateY(20%); }
  50%   { -webkit-transform: translateY(25%); }

}
            
          
!
            
              $(document).ready(function(){
  $('nav li a').on('click',function(){
    var _this = $(this);
    $('nav li a').removeClass('active');
    $(this).addClass('active');
    
     $('#block').removeAttr('class');
    
    setTimeout(function(){
      $('#block').attr('class', _this.attr('href'));
    },100);
    
    return false;
  });
});

function randomShowPin(el){
  //var delay = Math.floor((Math.random() * 1000) + 1, 4);
  //$(el).delay(delay).fadeIn(100).addClass('active');
  $(el).fadeIn(300)

}

if(filterName == 'todos'){
  $('#mapa .pin').each(function(){
    randomShowPin(this);
  });
} else {
  $('#mapa .pin').not('.' + filterName ).fadeOut(300).removeClass('active');
  $('#mapa .pin.' + filterName ).each(function(){
    randomShowPin(this);
  });
}
            
          
!
999px
Loading ..................

Console