export class Friends {
    constructor() {
        this.init();
    }

    init() {
        const cards = document.querySelectorAll('.friend-card');
        if (cards.length === 0) return;

        cards.forEach(card => {
            // Generate a random hue (0-360)
            const hue = Math.floor(Math.random() * 360);
            // Set the CSS variable on the element
            card.style.setProperty('--hover-hue', hue.toString());
        });
    }
}
评论加载中...