documentation structure

This commit is contained in:
David Haz
2025-07-08 23:34:52 +03:00
parent 9ddb731258
commit 660e4fd701
46 changed files with 3488 additions and 79 deletions

View File

@@ -51,8 +51,8 @@ export interface DotGridProps {
const props = withDefaults(defineProps<DotGridProps>(), {
dotSize: 16,
gap: 32,
baseColor: '#5227FF',
activeColor: '#5227FF',
baseColor: '#27FF64',
activeColor: '#27FF64',
proximity: 150,
speedTrigger: 100,
shockRadius: 250,

View File

@@ -84,7 +84,7 @@ const drawGrid = () => {
Math.sqrt(canvas.width ** 2 + canvas.height ** 2) / 2
)
gradient.addColorStop(0, "rgba(0, 0, 0, 0)")
gradient.addColorStop(1, "#0e0e0e")
gradient.addColorStop(1, "#0b0b0b")
ctx.fillStyle = gradient
ctx.fillRect(0, 0, canvas.width, canvas.height)

View File

@@ -47,6 +47,10 @@ const props = withDefaults(defineProps<SplitTextProps>(), {
textAlign: 'center'
})
const emit = defineEmits<{
'animation-complete': []
}>()
const textRef = ref<HTMLParagraphElement | null>(null)
const animationCompletedRef = ref(false)
const scrollTriggerRef = ref<ScrollTrigger | null>(null)
@@ -130,6 +134,7 @@ const initializeAnimation = async () => {
immediateRender: true,
})
props.onLetterAnimationComplete?.()
emit('animation-complete')
},
})