Оригинальное вертикальное анимированное меню с 3D эффектом на CSS3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
@import "http://weloveiconfonts.com/api/?family=entypo"; /* entypo */ [class*="entypo-"]:before { font-family:'entypo',sans-serif } @-webkit-keyframes flip { 0% { -webkit-transform:rotateY(0deg); opacity:1 } 100% { -webkit-transform:rotateY(95deg); opacity:0 } } @-moz-keyframes flip { 0% { -webkit-transform:rotateY(0deg); opacity:1 } 100% { -webkit-transform:rotateY(95deg); opacity:0 } } @-o-keyframes flip { 0% { -webkit-transform:rotateY(0deg); opacity:1 } 100% { -webkit-transform:rotateY(95deg); opacity:0 } } @keyframes flip { 0% { -webkit-transform:rotateY(0deg); opacity:1 } 100% { -webkit-transform:rotateY(95deg); opacity:0 } } ul { position:absolute; left:0; right:0; margin:50px auto; padding:0; width:200px; height:220px; list-style:none; -webkit-perspective:1000; -moz-perspective:1000; -o-perspective:1000; perspective:1000px } li { margin:2px 0; padding:0 } li a { display:block; height:18px; width:20px; background:rgba(155,155,155,0.5); color:#fff; padding:8px 6px; text-decoration:none; text-align:center } .menu { opacity:1; -webkit-transform:rotateY(0deg); -moz-transform:rotateY(0deg); -o-transform:rotateY(0deg); transform:rotateY(0deg); -webkit-transition:.3s; -moz-transition:.3s; -o-transition:.3s; transition:.3s } li span { width:154px; float:left; text-align:center; background:rgba(155,155,155,0.5); color:#fff; margin:-34px 34px; padding:8px 6px; transform-origin:0; opacity:0; -webkit-transform:rotateY(95deg); -webkit-transition:.5s; -moz-transition:.5s; -o-transition:.5s; transition:.5s; -webkit-animation:flip 2s; -moz-animation:flip 2s; -o-animation:flip 2s; animation:flip 2s } span[class='menu'] { -webkit-animation:none } li:nth-child(2) span { -webkit-animation-delay:.5s; -moz-animation-delay:.5s; -o-animation-delay:.5s; animation-delay:.5s } li:nth-child(3) span { -webkit-animation-delay:.4s; -moz-animation-delay:.4s; -o-animation-delay:.4s; animation-delay:.4s } li:nth-child(4) span { -webkit-animation-delay:.3s; -moz-animation-delay:.3s; -o-animation-delay:.3s; animation-delay:.3s } li:nth-child(5) span { -webkit-animation-delay:.2s; -moz-animation-delay:.2s; -o-animation-delay:.2s; animation-delay:.2s } li:nth-child(6) span { -webkit-animation-delay:.1s; -moz-animation-delay:.1s; -o-animation-delay:.1s; animation-delay:.1s } li a:hover ~ span { opacity:1; -webkit-transform:rotateY(0deg); -moz-transform:rotateY(0deg); -o-transform:rotateY(0deg); transform:rotateY(0deg); -webkit-transition:.5s; -moz-transition:.5s; -o-transition:.5s; transition:.5s } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<ul class="hmenu"> <li> <a class="entypo-menu" href="#"></a> <span class="menu">Menu</span> </li> <li> <a class="entypo-star" href="#"></a> <span>Favorite</span> </li> <li> <a class="entypo-newspaper" href="#"></a> <span>About us</span> </li> <li> <a class="entypo-location" href="#"></a> <span>Find us</span> </li> <li> <a class="entypo-link" href="#"></a> <span>Share</span> </li> <li> <a class="entypo-help-circled" href="#"></a> <span>FAQ's</span> </li> </ul> |