update: changed dither to use gif

This commit is contained in:
Xinrui Chen 2022-07-24 07:36:42 -07:00
parent 418eaa55f1
commit ddbbf8ed0d
10 changed files with 16 additions and 46 deletions

View File

@ -17,3 +17,7 @@
font-family: SF Mono, sans-serif;
}
.dither {
background-image: url('dither.gif');
background-repeat: repeat;
}

View File

@ -22,12 +22,8 @@
<button class={container} on:click={filter}>{tagName}</button>
<style>
@keyframes shake {
from {background-image:url('dither.png')}
to {background-image:url('dither2.png')}
}
button:hover {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
}
background-image: url('dither.gif');
background-repeat: repeat;
}
</style>

View File

@ -22,12 +22,8 @@
<style>
@keyframes shake {
from {background-image:url('dither.png')}
to {background-image:url('dither2.png')}
}
img:hover {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
background-image: url('dither.gif');
background-repeat: repeat;
}
</style>

View File

@ -57,17 +57,8 @@
</div>
<style>
@keyframes shake {
from {background-image:url('dither.png')}
to {background-image:url('dither2.png')}
}
select:hover {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
}
.dither {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
background-image: url('dither.gif');
background-repeat: repeat;
}
</style>

View File

@ -8,12 +8,9 @@
<a href="/" class={title} on:click={reset}> Rating Room </a>
<style>
@keyframes shake {
from {background-image:url('dither.png')}
to {background-image:url('dither2.png')}
}
a:hover {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
background-image: url('dither.gif');
background-repeat: repeat;
}
</style>

View File

@ -24,13 +24,3 @@
{/each}
</div>
<style>
@keyframes shake {
from {background-image:url('dither.png')}
to {background-image:url('dither2.png')}
}
.dither {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
}
</style>

View File

@ -22,12 +22,8 @@
</button>
<style>
@keyframes shake {
from {background-image:url('dither.png')}
to {background-image:url('dither2.png')}
}
button:hover {
background-blend-mode: color dodge;
animation: shake 0.4s infinite;
background-image: url('dither.gif');
background-repeat: repeat;
}
</style>

BIN
static/dither.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB