Last active
March 9, 2016 20:42
-
-
Save gregtatum/97b78af718fbdad0843e to your computer and use it in GitHub Desktop.
Tooltip example
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
| <div class='sign-in-area'> | |
| <a class="button" class='sign-in-btn' href="/accounts/fxa/login/">Sign in with <i class="fa fa-firefox"></i> Firefox Account</a> | |
| <div class='sign-in-tooltip'>Blah</div> | |
| </div> | |
| <style> | |
| .sign-in-tooltip { | |
| transition: transform 300ms, opacity 300ms; | |
| transform: translateY(-1em); | |
| opacity: 0; | |
| pointer-events:none; | |
| position:absolute; | |
| } | |
| .sign-in-area:hover .sign-in-tooltip { | |
| transform: translateY(0); | |
| opacity: 1; | |
| } | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment