Skip to content

Instantly share code, notes, and snippets.

View albertogalca's full-sized avatar
👋

Alberto Gallego albertogalca

👋
View GitHub Profile
i
Sustainable Web Development with Ruby on Rails
#### Practical Tips for Building Web Applications that Last
David Bryant Copeland
@albertogalca
albertogalca / hexagon.tsx
Created August 7, 2025 11:50
Hexagonal animation for Wanda
'use client';
import { useEffect, useRef } from 'react';
import { gsap } from 'gsap';
export default function Hexagon() {
const hexagonRef = useRef<SVGSVGElement>(null);
const pathRef = useRef<SVGPathElement>(null);
const secondaryLinesRef = useRef<(SVGPathElement | null)[]>([]);