Switch from upload wobble to drift

This commit is contained in:
Sam Becker 2024-07-06 22:51:54 -05:00
parent 867176775c
commit b4c0e0adb9
3 changed files with 12 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export default function AdminUploadsClient({
return ( return (
<div className="space-y-4"> <div className="space-y-4">
{urls.length > 1 && {(urls.length > 1 || isAdding) &&
<AdminAddAllUploads {...{ <AdminAddAllUploads {...{
storageUrls, storageUrls,
uniqueTags, uniqueTags,

View File

@ -52,7 +52,7 @@ export default function AdminUploadsTable({
'rounded-[3px] overflow-hidden', 'rounded-[3px] overflow-hidden',
'border-subtle', 'border-subtle',
isAdding && !isComplete && status === 'adding' && isAdding && !isComplete && status === 'adding' &&
'animate-hover-wobble shadow-lg', 'animate-hover-drift shadow-lg',
)} )}
/> />
</div> </div>

View File

@ -27,6 +27,8 @@ module.exports = {
animation: { animation: {
'rotate-pulse': 'rotate-pulse':
'rotate-pulse 0.75s linear infinite normal both running', 'rotate-pulse 0.75s linear infinite normal both running',
'hover-drift':
'hover-drift 8s linear infinite',
'hover-wobble': 'hover-wobble':
'hover-wobble 6s linear infinite normal both running', 'hover-wobble 6s linear infinite normal both running',
}, },
@ -36,6 +38,14 @@ module.exports = {
'50%': { transform: 'rotate(180deg) scale(0.8)' }, '50%': { transform: 'rotate(180deg) scale(0.8)' },
'100%': { transform: 'rotate(360deg) scale(1)' }, '100%': { transform: 'rotate(360deg) scale(1)' },
}, },
'hover-drift': {
'0%': { transform: 'translate(0, 0)' },
'20%': { transform: 'translate(1px, -2px)' },
'40%': { transform: 'translate(1px, 1.5px)' },
'60%': { transform: 'translate(-1px, 2px)' },
'80%': { transform: 'translate(-1.5px, -1.75px)' },
'100%': { transform: 'translate(0, 0)' },
},
'hover-wobble': { 'hover-wobble': {
'0%': { transform: 'rotate(0deg)' }, '0%': { transform: 'rotate(0deg)' },
'20%': { transform: 'rotate(3.5deg)' }, '20%': { transform: 'rotate(3.5deg)' },