Guest User

Untitled

a guest
Sep 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. body { padding: 150px; }
  2.  
  3. nav a {
  4. position: relative;
  5. display: block;
  6. float: left;
  7. width: 50px;
  8. height: 50px;
  9. margin-left: 10px;
  10. font-family: 'Helvetica Neue', Arial, sans-serif;
  11. line-height: 50px;
  12. text-decoration: none;
  13. text-transform: uppercase;
  14. color: #888;
  15. background-color: #858585;
  16. -webkit-transition: all .3s ease-in-out;
  17. -moz-transition: all .3s ease-in-out;
  18. transition: all .3s ease-in-out; }
  19.  
  20. nav a span {
  21. position: absolute;
  22. top: -60x;
  23. left: 0;
  24. padding: 3px 8px;
  25. opacity: 0;
  26. background: #fff;
  27. box-shadow: 0 1px 3px rgba(0,0,0,.25);
  28. border-radius: 3px;
  29. -webkit-transform: translate(35px) rotate(10deg) scale(1.5);
  30. -moz-transform: translate(35px) rotate(10deg) scale(1.5);
  31. -o-transform: translate(35px) rotate(10deg) scale(1.5);
  32. -ms-transform: translate(35px) rotate(10deg) scale(1.5);
  33. transform: translate(35px) rotate(10deg) scale(1.5);
  34. -webkit-transition: all 0.3s ease-in-out;
  35. -moz-transition: all 0.3s ease-in-out;
  36. -o-transition: all 0.3s ease-in-out;
  37. -ms-transition: all 0.3s ease-in-out;
  38. transition: all 0.3s ease-in-out; }
  39.  
  40. nav a:hover span {
  41. opacity: 1;
  42. z-index: 10;
  43. -webkit-transform: translate(0px) rotate(0deg) scale(1);
  44. -moz-transform: translate(0px) rotate(0deg) scale(1);
  45. -o-transform: translate(0px) rotate(0deg) scale(1);
  46. -ms-transform: translate(0px) rotate(0deg) scale(1);
  47. transform: translate(0px) rotate(0deg) scale(1); }
  48.  
  49. nav a:hover { background-color: #8bb93b; }
Add Comment
Please, Sign In to add comment