Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body { padding: 150px; }
- nav a {
- position: relative;
- display: block;
- float: left;
- width: 50px;
- height: 50px;
- margin-left: 10px;
- font-family: 'Helvetica Neue', Arial, sans-serif;
- line-height: 50px;
- text-decoration: none;
- text-transform: uppercase;
- color: #888;
- background-color: #858585;
- -webkit-transition: all .3s ease-in-out;
- -moz-transition: all .3s ease-in-out;
- transition: all .3s ease-in-out; }
- nav a span {
- position: absolute;
- top: -60x;
- left: 0;
- padding: 3px 8px;
- opacity: 0;
- background: #fff;
- box-shadow: 0 1px 3px rgba(0,0,0,.25);
- border-radius: 3px;
- -webkit-transform: translate(35px) rotate(10deg) scale(1.5);
- -moz-transform: translate(35px) rotate(10deg) scale(1.5);
- -o-transform: translate(35px) rotate(10deg) scale(1.5);
- -ms-transform: translate(35px) rotate(10deg) scale(1.5);
- transform: translate(35px) rotate(10deg) scale(1.5);
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- transition: all 0.3s ease-in-out; }
- nav a:hover span {
- opacity: 1;
- z-index: 10;
- -webkit-transform: translate(0px) rotate(0deg) scale(1);
- -moz-transform: translate(0px) rotate(0deg) scale(1);
- -o-transform: translate(0px) rotate(0deg) scale(1);
- -ms-transform: translate(0px) rotate(0deg) scale(1);
- transform: translate(0px) rotate(0deg) scale(1); }
- nav a:hover { background-color: #8bb93b; }
Add Comment
Please, Sign In to add comment