Skip to content

Instantly share code, notes, and snippets.

View Evavic44's full-sized avatar
Always learning

Victor Eke Evavic44

Always learning
View GitHub Profile
@Evavic44
Evavic44 / ProgressCircle.tsx
Last active September 8, 2024 04:45
Animated progress bar circle with SVG
import { useEffect } from "react";
export default function ProgressBar() {
const scheme = "#BD2546"; // hardcode progress bar theme or make it dynamic
const progress = 78; // progress value
function handleProgress(value: number, circle: "track" | "progress") {
const track = 2 * 3.14 * 90;
const progress = track * ((100 - value) / 100);
return circle === "track" ? track : progress;
@Evavic44
Evavic44 / CloudinaryVideoReel.md
Last active October 16, 2024 19:54
Cloudinary reel video implementation using Cloudinary React SDK
"use client";
import { useRef } from "react";
import { Cloudinary } from "@cloudinary/url-gen";
import {
  AdvancedVideo,
  AdvancedImage,
  lazyload,
  accessibility,
} from "@cloudinary/react";