SVG Animate
Home
Gallery
Blog
Start Creating
Membership
Profile
中
EN
Sign In
SVG Animation Examples Gallery
Browse featured svg animation examples
Search
Featured Picks
All
Map Traces
Dynamic View
Computer Science
Electronics
Machinery
STEM
Astronomy
Others
Playback pauses when you leave
'use client'; import React, { useState, useEffect, useRef, useMemo } from 'react'; const VIEW_WIDTH = 1000; const VIEW_HEIGHT = 600; // ============================================================================ // BUBBLE SORT VIEW (Preserved) // ============================================================================ export const BubbleSortView = () => { const [arr, setArr] = useState([40, 100, 20, 80, 60, 120, 10, 90]); const [comparing, setComparing] = useState<number[]>([]); c
Bubble sort algorithm
0
1
Prev
1
...
27
28
29
30
31
Next