Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css button click animation

.button {
  position: relative;
  background-color: #04AA6D;
  border: none;
  font-size: 28px;
  color: #FFFFFF;
  padding: 20px;
  width: 200px;
  text-align: center;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.button:after {
  content: "";
  background: #90EE90;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px!important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s
}

.button:active:after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s
}
Comment

onclick css animation

 <style>
 
    a:active {
      background-color: yellow;
    }
    button:focus {
      background-color: yellow;
    }
    </style>
Comment

PREVIOUS NEXT
Code Example
Css :: width 
Css :: displat grid overlapping columns 
Css :: link text underline css none 
Css :: sass mixin 
Css :: how to add dotted line after and before text in css 
Css :: how to space out buttons css 
Css :: import font in css 
Css :: zero two hair color code 
Css :: font shorthand css 
Css :: how to add an image to a label in css 
Css :: customize scroll bar css 
Css :: show arrow on hover css 
Css :: scss flex 
Css :: flex-flow 
Css :: radial-gradient css 
Css :: sass import 
Css :: change hr tag width css 
Css :: margin-top not working 
Css :: php executable not found. install php 7 and add it to your path 
Css :: flexbox 
Css :: device-pixel-ratio css 
Css :: npm ERR! 404 Not Found - GET https://registry.npmjs.org/taiwindcss - Not found 
Css :: Button CSS normal active hover 
Css :: css cursor forbidden 
Css :: css vertical align with flexbox 
Css :: col-md-6 bootstrap 
Css :: how to insert icons pseudo content 
Css :: scss nesting 
Css :: css display offscreen 
Css :: enable bootstrap intellisence vs code 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =