Skip to content

Instantly share code, notes, and snippets.

@douglasback
Created November 1, 2011 19:20
Show Gist options
  • Save douglasback/1331609 to your computer and use it in GitHub Desktop.
Save douglasback/1331609 to your computer and use it in GitHub Desktop.
More colorful performance indicator
{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}
@yahelc
Copy link

yahelc commented Nov 1, 2011

Can't believe -webkit-animation: rainbow... is a real thing.

@douglasback
Copy link
Author

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