Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css3 ripple loop

.circle {
  height:100px;
  width:100px;
  border-radius:50%;
  background-color:red;
  
  position:relative;
  top:100px;
  left:300px;
  
  -webkit-transition:height .25s ease, width .25s ease;
  transition:height .25s ease, width .25s ease;
  
  -webkit-transform:translate(-50%,-50%);
  transform:translate(-50%,-50%);
}

.circle:hover{
  height:150px;
  width:150px;
}

.circle:before,
.circle:after {
  content:'';
  display:block;
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  border-radius:50%;
  border:1px solid red;
}

.circle:before {
  -webkit-animation: ripple 2s linear infinite;
  animation: ripple 2s linear infinite;
}
.circle:after {
  -webkit-animation: ripple 2s linear 1s infinite;
  animation: ripple 2s linear 1s infinite;
}

.circle:hover:before,
.circle:hover:after {
  -webkit-animation: none;
  animation: none;
}

@-webkit-keyframes ripple{
  0% {-webkit-transform:scale(1); }
  75% {-webkit-transform:scale(1.75); opacity:1;}
  100% {-webkit-transform:scale(2); opacity:0;}
}

@keyframes ripple{
  0% {transform:scale(1); }
  75% {transform:scale(1.75); opacity:1;}
  100% {transform:scale(2); opacity:0;}
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to change a checkbox to be selected 
Css :: add space inbetween words of text 
Css :: debordement de texte css 
Css :: radio check mark color 
Css :: in 10 seconds fade in a card html css 
Css :: video failing to scale with div css background 
Css :: how to allign li in row 
Css :: lando expose database port 
Css :: html incliude all css from folder 
Css :: highchart font family 
Css :: python css 
Css :: html css text between Horizontal line 
Css :: blue gradient 
Css :: map arrays 
Css :: count how many characters in the same position are eqial in both strings 
Css :: space-x css 
Css :: transform in css 
Css :: outline 
Css :: box-sizing 
Css :: boxsizing 
Css :: use .map to count length of each element in an array 
Css :: css drop down 
Css :: css hover change other element 
Css :: css elementos 
Css :: what is bulletproof buttons 
Css :: añadir hojas css externas a wordpress 
Css :: div css 
Css :: Ul or ol with no indent 
Css :: step 54 freecodecamp rwd 
Css :: html css click through underlying elements 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =