(fix) parallax css

This commit is contained in:
kakkokari-gtyih 2023-09-23 19:17:19 +09:00
parent 654f3d158e
commit 080694da44
3 changed files with 12 additions and 7 deletions

View File

@ -16,7 +16,8 @@ import Blob2 from '@/assets/svg/top-bg-object2.svg';
<style scoped>
.blobs {
@apply absolute select-none pointer-events-none;
animation: parallax linear;
animation-name: parallax;
animation-timing-function: linear;
animation-timeline: scroll(root y);
--coefficient-parallax: 6;
}

View File

@ -16,7 +16,8 @@
.dots1 {
right: 900px;
top: 200px;
animation: parallax linear;
animation-name: parallax;
animation-timing-function: linear;
animation-timeline: scroll(root y);
--coefficient-parallax: 1.4;
}
@ -24,7 +25,8 @@
.dots2 {
right: 120px;
top: 500px;
animation: parallax linear;
animation-name: parallax;
animation-timing-function: linear;
animation-timeline: scroll(root y);
--coefficient-parallax: 1.5;
}
@ -37,7 +39,8 @@
right: 650px;
top: 400px;
height: 400px;
animation: parallax linear;
animation-name: parallax;
animation-timing-function: linear;
animation-timeline: scroll(root y);
--coefficient-parallax: 3;
}
@ -46,7 +49,8 @@
width: 750px;
top: 128px;
right: 300px;
animation: parallax linear;
animation-name: parallax;
animation-timing-function: linear;
animation-timeline: scroll(root y);
--coefficient-parallax: 2;
}
@ -56,7 +60,8 @@
right: 130px;
top: 128px;
height: 900px;
animation: parallax linear;
animation-name: parallax;
animation-timing-function: linear;
animation-timeline: scroll(root y);
--coefficient-parallax: 4;
}

View File

@ -3,7 +3,6 @@ import ViteYaml from '@modyfi/vite-plugin-yaml';
import svgLoader from 'vite-svg-loader';
import genSitemap from './scripts/gen-sitemap';
import { genApiTranslationFiles } from './scripts/gen-api-translations';
import { resolve } from 'path';
// 公開時のドメイン(末尾スラッシュなし)
const baseUrl = 'https://misskey-hub.net';