nuxt-ui-elements 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -128,12 +128,10 @@ const maskGradient = computed(() => {
|
|
|
128
128
|
class="absolute inset-0 overflow-hidden"
|
|
129
129
|
:style="maskGradient ? { maskImage: maskGradient } : {}"
|
|
130
130
|
>
|
|
131
|
-
<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/>
|
|
136
|
-
</ClientOnly>
|
|
131
|
+
<div
|
|
132
|
+
class="aurora-effect pointer-events-none absolute -inset-2.5 h-full w-full will-change-transform animate-in fade-in duration-1000"
|
|
133
|
+
:style="{ opacity: auroraOpacityValue }"
|
|
134
|
+
/>
|
|
137
135
|
</div>
|
|
138
136
|
|
|
139
137
|
<div class="relative z-10">
|
|
@@ -193,6 +193,7 @@ function animate(time) {
|
|
|
193
193
|
animationFrameId = requestAnimationFrame(animate);
|
|
194
194
|
}
|
|
195
195
|
onMounted(() => {
|
|
196
|
+
if (!import.meta.client) return;
|
|
196
197
|
if (!canvasRef.value || !containerRef.value) return;
|
|
197
198
|
context.value = canvasRef.value.getContext("2d");
|
|
198
199
|
if (!context.value) return;
|
|
@@ -239,9 +240,7 @@ watch(
|
|
|
239
240
|
|
|
240
241
|
<template>
|
|
241
242
|
<div ref="containerRef" :class="ui.base({ class: [props.ui?.base] })">
|
|
242
|
-
<
|
|
243
|
-
<canvas ref="canvasRef" :class="ui.canvas({ class: props.ui?.canvas })" :style="maskStyle" />
|
|
244
|
-
</ClientOnly>
|
|
243
|
+
<canvas ref="canvasRef" :class="ui.canvas({ class: props.ui?.canvas })" :style="maskStyle" />
|
|
245
244
|
<slot />
|
|
246
245
|
</div>
|
|
247
246
|
</template>
|
package/package.json
CHANGED