Created
November 1, 2011 19:20
-
-
Save douglasback/1331609 to your computer and use it in GitHub Desktop.
More colorful performance indicator
This file contains 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
{if member_group == '1'} | |
<style> | |
@-webkit-keyframes rainbow { | |
0% { | |
background-color: rgba(255,0,0,0.7); | |
} | |
33% { | |
background-color: rgba(0,255,0,0.7); | |
} | |
66% { | |
background-color: rgba(0,0,255,0.7); | |
} | |
100% { | |
background-color: rgba(255,0,0,0.7); | |
} | |
} | |
#bsd-performance { -webkit-animation: rainbow 3s infinite; } | |
</style> | |
<div id="bsd-performance" style="position: fixed; right: 0; bottom: 0; padding: 7px; color: white; font-family: Verdana, sans-serif; z-index: 999; "> | |
{total_queries} queries<br /> | |
{elapsed_time} seconds | |
</div> | |
{/if} |
css3 animation names are arbitrary — they just refer to a named set of keyframes. it's all user-defined.
sorry to disappoint!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't believe
-webkit-animation: rainbow...
is a real thing.