Skip to content

Instantly share code, notes, and snippets.

@fabianelima
Created September 15, 2017 17:55
Show Gist options
  • Select an option

  • Save fabianelima/b8072d279473500e5e78c1846e3edb34 to your computer and use it in GitHub Desktop.

Select an option

Save fabianelima/b8072d279473500e5e78c1846e3edb34 to your computer and use it in GitHub Desktop.
CSS Bubble
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8">
<style type="text/css">
.bubble {
width: 100%;
height: 100%;
max-width: 60px;
max-height: 60px;
position: absolute;
background: #95102c;
border-radius: 100%;
animation: teste 1s ease-in-out 0s infinite alternate;
}
@keyframes teste {
from { transform: scale(1); opacity: 1 }
to { transform: scale(2); opacity: 0 }
}
</style>
</head>
<body>
<div class="bubble"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment