an independent Bluesky client using Constellation, PDS Queries, and other services reddwarf.app
frontend spa bluesky reddwarf microcosm client app
99
fork

Configure Feed

Select the types of activity you want to include in your feed.

at a798ba8cd012cbf61a0a59dd46390809ed772ba7 24 lines 497 B view raw
1import { useEffect, useState } from "react"; 2 3export default function ShrinkingBox() { 4 const [size, setSize] = useState(2000); 5 6 useEffect(() => { 7 const interval = setInterval(() => { 8 setSize(prev => Math.max(prev - 125, 0)); 9 }, 250); 10 11 return () => clearInterval(interval); 12 }, []); 13 14 return ( 15 <div 16 style={{ 17 //width: `${size}px`, 18 height: `${size}px`, 19 //backgroundColor: "skyblue", 20 transition: "all 0.5s ease", 21 }} 22 /> 23 ); 24}