Skip to content

Instantly share code, notes, and snippets.

View tcaraher's full-sized avatar

Tom Caraher tcaraher

View GitHub Profile
@tcaraher
tcaraher / svg-animations.js
Created August 21, 2023 23:34
Animating SVGs with framer motion
import {
motion,
useAnimation,
useAnimationControls,
} from "framer-motion";
import React, { useEffect, useState } from "react";
function generateRandomInteger(min, max) {
return Math.floor(min + Math.random() * (max - min + 1));