Skip to content

Instantly share code, notes, and snippets.

@MouseZero
Created October 1, 2017 22:01
Show Gist options
  • Save MouseZero/e587ce633e47518c0a7e0385f6bd6b49 to your computer and use it in GitHub Desktop.
Save MouseZero/e587ce633e47518c0a7e0385f6bd6b49 to your computer and use it in GitHub Desktop.
Pulse Button
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Lato:900' rel='stylesheet' type='text/css'>
<style type="text/css">
.pulse-button {
margin: 100px;
background: #FFFFFF;
background-image: linear-gradient(-180deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.04) 100%);
border: 5px solid #383BFF;
position: relative;
width: 100px;
height: 100px;
cursor: pointer;
-webkit-animation: none;-moz-animation: none;-ms-animation: none;animation: none;
}
.pulse-button:hover
{
animation: pulse 1.25s 1 cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(59, 48, 155, 0.7);
}
100% {
box-shadow: 0 0 0 45px rgba(25, 59, 255, 0);
}
}
</style>
</head>
<body>
<div class="pulse-button"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment