Amazing CSS3 Pushy Buttons (So Slick)


/ Published in: CSS
Save to your folder(s)

Really Nice CSS3 Buttons I came across. Love the gradients and especially the Pushy Effects.


Copy this code and paste it in your HTML
  1. body {
  2. background: #ddd;
  3. }
  4.  
  5. #button {
  6. width: 100px;
  7. height: 100px;
  8. border-bottom: 2px solid #eee;
  9.  
  10. background-image: -webkit-linear-gradient(top, #999, #d0d0d0 80% );
  11. background-image: -moz-linear-gradient(top, #999, #d0d0d0 80% );
  12. background-image: -ms-linear-gradient(top, #999, #d0d0d0 80% );
  13. background-image: -o-linear-gradient(top, #999, #d0d0d0 80% );
  14. background-image: linear-gradient(top, #999, #d0d0d0 80% );
  15.  
  16. -moz-border-radius: 100px;
  17. -webkit-border-radius: 100px;
  18. border-radius: 100px;
  19.  
  20. box-shadow: inset rgba(0,0,0,0.2) 0px 5px 6px ;
  21.  
  22. left: 50%;
  23. top: 50%;
  24. margin-left: -50px;
  25. margin-top: -50px;
  26. position: absolute;
  27. }
  28.  
  29. .butt {
  30. position: absolute;
  31. width: 80px;
  32. height: 52px;
  33. left: 10px;
  34. top: 10px;
  35. cursor: pointer;
  36. font-family: "Lucida Sans";
  37. font-weight: bold;
  38. font-size: 23px;
  39. color: #888;
  40. text-shadow: 0px 1px 0px #fff;
  41. text-align: center;
  42. padding-top: 28px;
  43.  
  44. -moz-border-radius: 100px;
  45. -webkit-border-radius: 100px;
  46. border-radius: 100px;
  47.  
  48. background-image: -webkit-linear-gradient(top, #eee, #bbb 70%, #9f9f9f 100% );
  49. background-image: -moz-linear-gradient(top, #eee, #bbb 70%, #9f9f9f 100% );
  50. background-image: -ms-linear-gradient(top, #eee, #bbb 70%, #9f9f9f 100% );
  51. background-image: -o-linear-gradient(top, #eee, #bbb 70%, #9f9f9f 100% );
  52. background-image: linear-gradient(top, #eee, #bbb 70%, #9f9f9f 100% );
  53.  
  54. background-position: 0 6px;
  55. background-color: #eee;
  56. background-repeat: no-repeat;
  57.  
  58. -webkit-box-shadow: rgba(0,0,0,.4) 0 3px 6px;
  59. -moz-box-shadow: rgba(0,0,0,.4) 0 3px 6px;
  60. box-shadow: rgba(0,0,0,.4) 0 3px 6px;
  61.  
  62. -webkit-transition: all .1s ease-in;
  63. -moz-transition: all .1s ease-in;
  64. -ms-transition: all .1s ease-in;
  65. -o-transition: all .1s ease-in;
  66. transition: all .1s ease-in;
  67. }
  68.  
  69. .butt:hover {
  70. background-position: 0 0px;
  71.  
  72. -webkit-box-shadow: rgba(0,0,0,.4) 0 3px 8px;
  73. -moz-box-shadow: rgba(0,0,0,.4) 0 3px 8px;
  74. box-shadow: rgba(0,0,0,.4) 0 3px 8px;
  75. }
  76.  
  77. .butt:active {
  78. width: 76px;
  79. height: 48px;
  80. margin: 2px 0 0 2px;
  81. border-bottom: 1px solid #fff;
  82. font-size: 21px;
  83. color: #777;
  84.  
  85. -webkit-box-shadow: inset rgba(0,0,0,.5) 0px 5px 10px;
  86. -moz-box-shadow: inset rgba(0,0,0,.5) 0px 5px 10px;
  87. box-shadow: inset rgba(0,0,0,.5) 0px 5px 10px;
  88. }

URL: http://css-creations.com/item/59/animated-push-button

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.