Refine photo thumb loading animation
This commit is contained in:
parent
8518bd216c
commit
271aeb0bb4
@ -14,6 +14,7 @@ const eslintConfig = [
|
|||||||
rules: {
|
rules: {
|
||||||
'@next/next/no-img-element': 'off',
|
'@next/next/no-img-element': 'off',
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
'@typescript-eslint/no-require-imports': 'off',
|
||||||
'no-unused-expressions': ['warn'],
|
'no-unused-expressions': ['warn'],
|
||||||
'@typescript-eslint/no-unused-vars': [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
'warn', {
|
'warn', {
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
||||||
import type { NextConfig } from 'next';
|
import type { NextConfig } from 'next';
|
||||||
import { RemotePattern } from 'next/dist/shared/lib/image-config';
|
import { RemotePattern } from 'next/dist/shared/lib/image-config';
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,8 @@ export default function PhotoMedium({
|
|||||||
{isLoading &&
|
{isLoading &&
|
||||||
<div className={clsx(
|
<div className={clsx(
|
||||||
'absolute inset-0 flex items-center justify-center',
|
'absolute inset-0 flex items-center justify-center',
|
||||||
'text-white bg-black/25',
|
'text-white bg-black/25 backdrop-blur-sm',
|
||||||
|
'animate-fade-in',
|
||||||
'z-10',
|
'z-10',
|
||||||
)}>
|
)}>
|
||||||
<Spinner size={20} color="text" />
|
<Spinner size={20} color="text" />
|
||||||
|
|||||||
@ -28,12 +28,18 @@ 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',
|
||||||
|
'fade-in':
|
||||||
|
'fade-in 0.5s linear',
|
||||||
'hover-drift':
|
'hover-drift':
|
||||||
'hover-drift 8s linear infinite',
|
'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',
|
||||||
},
|
},
|
||||||
keyframes: {
|
keyframes: {
|
||||||
|
'fade-in': {
|
||||||
|
'0%': { opacity: '0' },
|
||||||
|
'100%': { opacity: '1' },
|
||||||
|
},
|
||||||
'rotate-pulse': {
|
'rotate-pulse': {
|
||||||
'0%': { transform: 'rotate(0deg) scale(1)' },
|
'0%': { transform: 'rotate(0deg) scale(1)' },
|
||||||
'50%': { transform: 'rotate(180deg) scale(0.8)' },
|
'50%': { transform: 'rotate(180deg) scale(0.8)' },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user