gemini-ui / gemini-ui-monorepo

Gemini UI monorepo
https://gemini-ui-website-gemini-ui.vercel.app
5 stars 1 forks source link

Dynamic glow not responding to mouse movements in some contexts #56

Open bcheidemann opened 6 months ago

bcheidemann commented 6 months ago

In some contexts, the dynamic glow is not animated in some examples. See the docs on DynamicGlow for an example of this. The custom properties seem to be applied correctly to the element.

Screenshot 2024-03-24 at 20 50 46
lukes-code commented 6 months ago

Context of sometimes working:

If you add this to one of the mdx files it works:

import { Styles } from "@gemini-ui-astro/styles";
import { DynamicGlow } from "@gemini-ui-astro/components";
import { Grid, Card } from "@gemini-ui-astro/components";

<Styles />
<DynamicGlow />

<Card dynamicGlow>A</Card>

But if you add this it doesn't:

'''astro live
---
import { Styles } from "@gemini-ui-astro/styles";
import { DynamicGlow } from "@gemini-ui-astro/components";
import { Grid, Card } from "@gemini-ui-astro/components";
---
<Styles />
<DynamicGlow />

<Card dynamicGlow>A</Card>
'''