1
0
Fork 1
mirror of https://example.com synced 2024-11-24 16:36:39 +09:00

Rose Pine sparkles

This commit is contained in:
ThatOneCalculator 2022-07-23 23:48:00 -07:00
parent acc482abef
commit 8ed88c9e10

View file

@ -73,7 +73,7 @@ export default defineComponent({
const el = ref<HTMLElement>();
const width = ref(0);
const height = ref(0);
const colors = ['#FF1493', '#00FFFF', '#FFE202', '#FFE202', '#FFE202'];
const colors = ['#eb6f92', '#9ccfd8', '#f6c177', '#f6c177', '#ebbcba'];
let stop = false;
let ro: ResizeObserver | undefined;
@ -107,7 +107,7 @@ export default defineComponent({
};
add();
});
onUnmounted(() => {
if (ro) ro.disconnect();
stop = true;