魔幻般冒泡背景的CSS3按钮动画

2020-05-05 07:31:03易采站长站整理

 background-position:top left;   
 background-position:top left, bottombottom rightright, 0 0, 0 0;   
}   
  
.button:active{   
 /* Moving the button 1px to the bottom when clicked */  
 bottombottom:-1px;   
}   
  
/* The three buttons sizes */  
  
.button.big  { font-size:30px;}   
.button.medium { font-size:18px;}   
.button.small { font-size:13px;}   
  
/* A more rounded button */  
  
.button.rounded{   
 -moz-border-radius:4em;   
 -webkit-border-radius:4em;   
 border-radius:4em;   
}   
  
/* Defining four button colors */  
  
/* BlueButton */  
  
.blue.button{   
 color:#0f4b6d !important;   
  
 border:1px solid #84acc3 !important;   
  
 /* A fallback background color */  
 background-color: #48b5f2;   
  
 /* Specifying a version with gradients according to */  
  
 background-image: url(‘button_bg.png’), url(‘button_bg.png’),   
      -moz-radial-gradient( center bottombottom, circle,   
            rgba(89,208,244,1) 0,rgba(89,208,244,0) 100px),   
      -moz-linear-gradient(#4fbbf7, #3faeeb);   
  
 background-image: url(‘button_bg.png’), url(‘button_bg.png’),   
      -webkit-gradient( radial, 50% 100%, 0, 50% 100%, 100,   
           from(rgba(89,208,244,1)), to(rgba(89,208,244,0))),   
      -webkit-gradient(linear, 0% 0%, 0% 100%, from(#4fbbf7), to(#3faeeb));   
}   
  
.blue.button:hover{   
 background-color:#63c7fe;   
  
 background-image: url(‘button_bg.png’), url(‘button_bg.png’),   
      -moz-radial-gradient( center bottombottom, circle,