<div class="container ta-c">
  <h2 class="p-r">Animate menu CSS</h2>
  <nav class="menu animated flipInX">
		<ul class="no-ls ta-l t-all">
			<li>
        <a href="#">
          <h3>Link 1</h3>
          <p>text 1</p>
          </a>
        </li>
        <li>
			          <a href="#">
				            <h3>Link 2</h3>
				            <p>text 2</p>
			          </a>
        </li>
        <li>
			          <a href="#">
				            <h3>Link 3</h3>
				            <p>text 3</p>
			          </a>
        </li>
        <li>
      			    <a href="#">
				            <h3>Link 4</h3>
				            <p>text 4</p>
			          </a>
        </li>
        <li>
			          <a href="#">
				            <h3>Link 5</h3>
				            <p>text 5</p>
			          </a>
        </li>
        <li>
			          <a href="http://joellesenne.xyz">
          <p>&copy; 2014 – Joël Lesenne</p>
			        </a>
      </li>
    	</ul>
	 </nav>
</div>

body {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
	background: #d8ecf2;
  color: RGBA(67, 83, 99, 1);
}

.container {
  margin: 0 auto;
  width: 350px;
	max-width: 350px;
}

h2 {
  padding: 1.8rem 0;
  
  font-size: 2.8rem;
  
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.4);
  
}

nav {
  -webkit-box-flex: auto;
  -webkit-flex: auto;
  -ms-flex: auto;
  flex: auto;
  position: relative;
  padding: .6125rem .6152rem 1.6125rem;
} 

li a { 
  text-decoration: none;
  color: RGBA(67, 83, 99, 1);
  cursor: -webkit-zoom-in;
  cursor:         zoom-in;
}

ul:hover a {
  opacity: .8;
  
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}

ul a {
  display: block;
  position: relative;
  padding: .75rem 1rem 1rem;
  
  -webkit-transition: -webkit-transform .22s,box-shadow .22s;
  transition: transform .22s,box-shadow .22s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  user-drag: none;
  box-shadow: 0 0 0 -.25rem rgba(0,0,0,.1);
}

ul a:focus, ul a:hover {
  outline: 0;
  box-shadow: 0 .5rem 0 -.25rem rgba(0,0,0,.1);
  opacity: 1;
  -webkit-transform: scale(1.03);
  transform:scale(1.03);
  -webkit-transition: -webkit-transform .088s,box-shadow .088s;
  transition: transform .088s,box-shadow .088s;
  z-index: 1;
}

.menu a:nth-child(1) {
  background: #95c5db;
}
.menu a:nth-child(2) {
  background: #94c1db;
}
.menu a:nth-child(3) {
  background: #94bddb;
}
.menu a:nth-child(4) {
  background: #94b9db;
}
.menu a:nth-child(5) {
  background: #94b5db;
}
.menu a:nth-child(6) {
  background: #94b2db;
}

.menu a:nth-child(6):hover {
  cursor: pointer;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotateX(90deg);
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotateX(-10deg);
    transform: perspective(400px) rotateX(-10deg);
  }

  70% {
    -webkit-transform: perspective(400px) rotateX(10deg);
    transform: perspective(400px) rotateX(10deg);
  }

  100% {
    -webkit-transform: perspective(400px) rotateX(0deg);
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotateX(90deg);
    -ms-transform: perspective(400px) rotateX(90deg);
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotateX(-10deg);
    -ms-transform: perspective(400px) rotateX(-10deg);
    transform: perspective(400px) rotateX(-10deg);
  }

  70% {
    -webkit-transform: perspective(400px) rotateX(10deg);
    -ms-transform: perspective(400px) rotateX(10deg);
    transform: perspective(400px) rotateX(10deg);
  }

  100% {
    -webkit-transform: perspective(400px) rotateX(0deg);
    -ms-transform: perspective(400px) rotateX(0deg);
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
  }
}

.flipInX {
  -webkit-backface-visibility: visible !important;
  -ms-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInX;
  animation-name: flipInX;
}
// Animate menu mouseover, pure CSS

// inspired: <https://bennettfeely.com>

// Author Joël Lesenne <https://joellesenne.dev>
Run Pen

External CSS

  1. https://codepen.io/joellesenne/pen/pdMPdW

External JavaScript

  1. https://codepen.io/joellesenne/pen/pdMPdW