mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
animation tweaks
This commit is contained in:
parent
127e3a4317
commit
98f1d88db8
@ -16,10 +16,10 @@ const outputManifest = path.resolve(
|
|||||||
// https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
|
// https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
|
||||||
const sizes = [32, 180, 192, 512]
|
const sizes = [32, 180, 192, 512]
|
||||||
const outputMeta = `
|
const outputMeta = `
|
||||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
<link rel="icon" href="/favicon.ico" sizes="any" />
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||||
<link rel="manifest" href="/manifest/manifest.webmanifest">
|
<link rel="manifest" href="/manifest/manifest.webmanifest" />
|
||||||
`
|
`
|
||||||
|
|
||||||
function createManifest(iconsizes: number[]) {
|
function createManifest(iconsizes: number[]) {
|
||||||
|
@ -1,34 +1,7 @@
|
|||||||
export const moveInTop = {
|
export const moveInTop = {
|
||||||
initial: {
|
initial: {
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: -100,
|
y: -50,
|
||||||
transition: {
|
|
||||||
type: 'spring'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
enter: {
|
|
||||||
opacity: 1,
|
|
||||||
y: 0,
|
|
||||||
transition: {
|
|
||||||
type: 'spring',
|
|
||||||
duration: 0.3,
|
|
||||||
stiffness: 120
|
|
||||||
}
|
|
||||||
},
|
|
||||||
exit: {
|
|
||||||
opacity: 0,
|
|
||||||
y: -100,
|
|
||||||
transition: {
|
|
||||||
type: 'spring',
|
|
||||||
duration: 0.2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const moveInBottom = {
|
|
||||||
initial: {
|
|
||||||
opacity: 0,
|
|
||||||
y: 100,
|
|
||||||
transition: { type: 'spring' }
|
transition: { type: 'spring' }
|
||||||
},
|
},
|
||||||
enter: {
|
enter: {
|
||||||
@ -42,7 +15,32 @@ export const moveInBottom = {
|
|||||||
},
|
},
|
||||||
exit: {
|
exit: {
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100,
|
y: -50,
|
||||||
|
transition: {
|
||||||
|
type: 'spring',
|
||||||
|
duration: 0.2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const moveInBottom = {
|
||||||
|
initial: {
|
||||||
|
opacity: 0,
|
||||||
|
y: 50,
|
||||||
|
transition: { type: 'spring' }
|
||||||
|
},
|
||||||
|
enter: {
|
||||||
|
opacity: 1,
|
||||||
|
y: 0,
|
||||||
|
transition: {
|
||||||
|
type: 'spring',
|
||||||
|
duration: 0.4,
|
||||||
|
stiffness: 120
|
||||||
|
}
|
||||||
|
},
|
||||||
|
exit: {
|
||||||
|
opacity: 0,
|
||||||
|
y: 50,
|
||||||
transition: {
|
transition: {
|
||||||
type: 'spring'
|
type: 'spring'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user