diff --git a/src/constants/code/Components/borderGlowCode.ts b/src/constants/code/Components/borderGlowCode.ts new file mode 100644 index 0000000..55902d5 --- /dev/null +++ b/src/constants/code/Components/borderGlowCode.ts @@ -0,0 +1,27 @@ +import code from '@content/Components/BorderGlow/BorderGlow.vue?raw'; +import { createCodeObject } from '../../../types/code'; + +export const borderGlow = createCodeObject(code, 'Components/BorderGlow', { + usage: ` + + + Your Content Here + Hover near the edges to see the glow. + + + + +` +}); diff --git a/src/content/Components/BorderGlow/BorderGlow.vue b/src/content/Components/BorderGlow/BorderGlow.vue new file mode 100644 index 0000000..9ae61ff --- /dev/null +++ b/src/content/Components/BorderGlow/BorderGlow.vue @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/demo/Components/BorderGlowDemo.vue b/src/demo/Components/BorderGlowDemo.vue new file mode 100644 index 0000000..3832a79 --- /dev/null +++ b/src/demo/Components/BorderGlowDemo.vue @@ -0,0 +1,138 @@ + + + + + + + + Hover Near the Edges + + Move your cursor close to the card border to see the colored glow effect follow your pointer direction. + + + + + + + + + + + + + + + + Gradient Colors + + + + + + + + + + + + + + + + + + + + + + +
Hover near the edges to see the glow.
Hover Near the Edges
+ Move your cursor close to the card border to see the colored glow effect follow your pointer direction. +