Created
September 15, 2017 17:55
-
-
Save fabianelima/b8072d279473500e5e78c1846e3edb34 to your computer and use it in GitHub Desktop.
CSS Bubble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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