Skip to content

Commit

Permalink
remove flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjornbp committed Nov 24, 2024
1 parent 9614b3f commit 00b0004
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions layouts/shortcodes/webamp.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
<div class="menu">
<button onclick="launchWebamp()" class="menu flashing">
<strong>Launch webamp player </strong>
<button onclick="launchWebamp()" class="menu">
<strong>Launch webamp player</strong>
<img src="/webamp/webamp.svg" alt="Webamp logo" style="height: 1.5em; vertical-align: middle;">
</button>
</div>

<style>
@keyframes flash {
0%, 100% {
background: #f9f9f9;
color: inherit;
}
50% {
background: royalblue;
color: white;
}
}

.flashing {
animation: flash 1s infinite;
}

/* Stop animation on hover to match your site's hover style */
.flashing:hover {
animation: none;
}
</style>

<div id="app" style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; display: none;">
<!-- Webamp will attempt to center itself within this div -->
</div>
Expand Down

0 comments on commit 00b0004

Please sign in to comment.