the component i design

Washing Machine

designed by Aaditya Jaiswar

WashingMachine.jsx
/*
 * WashingMachine — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './WashingMachine.css';

export default function WashingMachine() {
  return <div className="washing-machine" />;
}
WashingMachine.css
/*
 * WashingMachine — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
.washing-machine {
  width: 120px;
  height: 150px;
  background-color: #171717;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(#383838 50%, #242424 51%),
    linear-gradient(#555, #555),
    linear-gradient(#444, #444),
    radial-gradient(ellipse at center, #111 25%, #555 26%, #222 50%, #0000 55%),
    radial-gradient(ellipse at center, #111 25%, #555 26%, #222 50%, #0000 55%),
    radial-gradient(ellipse at center, #111 25%, #555 26%, #222 50%, #0000 55%);
  background-position: 0 20px, 45px 0, 8px 6px, 55px 3px, 75px 3px, 95px 3px;
  background-size: 100% 4px, 1px 23px, 30px 8px, 15px 15px, 15px 15px, 15px 15px;
  position: relative;
  border-radius: 6%;
  border: 1px solid #555;
  box-shadow: 0 5px 15px #0008;
  animation: wm-shake 3s ease-in-out infinite;
  transform-origin: 60px 180px;
}

.washing-machine::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 100%;
  width: 7px;
  height: 5px;
  background: #444;
  border-radius: 0 0 4px 4px;
  box-shadow: 102px 0 #444;
}

.washing-machine::after {
  content: '';
  position: absolute;
  width: 95px;
  height: 95px;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 20px;
  background-color: #111;
  background-image:
    linear-gradient(to right, #0008 0%, #0008 49%, #0000 50%, #0000 100%),
    linear-gradient(135deg, #777 50%, #292929 51%);
  background-size: 30px 100%, 90px 80px;
  border-radius: 50%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0;
  box-sizing: border-box;
  border: 10px solid #555;
  box-shadow: 0 0 0 4px #222 inset, 0 0 6px 6px #0008 inset, 0 0 0 1px #888;
  animation: wm-spin 3s ease-in-out infinite;
}

@keyframes wm-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
  75% { transform: rotate(750deg); }
  100% { transform: rotate(1800deg); }
}

@keyframes wm-shake {
  65%, 80%, 88%, 96% { transform: rotate(0.5deg); }
  50%, 75%, 84%, 92% { transform: rotate(-0.5deg); }
  0%, 50%, 100% { transform: rotate(0); }
}

Pixel Ghost

designed by Aaditya Jaiswar

PixelGhost.jsx
'use client';

/*
 * PixelGhost — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import { useId } from 'react';
import './PixelGhost.css';

// 14×14 arcade ghost sprite, one rect per row run: [x, y, width]
const BODY = [[5, 0, 4], [3, 1, 8], [2, 2, 10], [1, 3, 12], [1, 4, 12], [1, 5, 12],
  ...Array.from({ length: 6 }, (_, i) => [0, 6 + i, 14])];
// the skirt flips between two frames, like the original
const SKIRT_A = [[0, 12, 2], [3, 12, 3], [8, 12, 3], [12, 12, 2], [0, 13, 1], [4, 13, 2], [8, 13, 2], [13, 13, 1]];
const SKIRT_B = [[0, 12, 2], [3, 12, 2], [6, 12, 2], [9, 12, 2], [12, 12, 2], [1, 13, 1], [5, 13, 1], [8, 13, 1], [12, 13, 1]];
// eye white: rounded 4×5 block
const EYE = [[1, 3, 2], [0, 4, 4], [0, 5, 4], [0, 6, 4], [1, 7, 2]];

const rects = (runs, dx = 0) => runs.map(([x, y, w]) => <rect key={`${x}-${y}`} x={x + dx} y={y} width={w} height={1} />);

export default function PixelGhost() {
  const fill = useId(); // unique per copy — the marquee renders several

  return (
    <div className="pixel-ghost">
      <svg className="pg-ghost" viewBox="0 0 14 14" shapeRendering="crispEdges" aria-hidden="true">
        <defs>
          <linearGradient id={fill} x1="0" y1="0" x2="1" y2="1">
            <stop offset="0" stopColor="#ff1744" />
            <stop offset=".45" stopColor="#d946ef" />
            <stop offset="1" stopColor="#6366f1" />
          </linearGradient>
        </defs>
        <g fill={`url(#${fill})`}>
          {rects(BODY)}
          <g className="pg-skirt-a">{rects(SKIRT_A)}</g>
          <g className="pg-skirt-b">{rects(SKIRT_B)}</g>
        </g>
        <g fill="#fff">
          {rects(EYE, 2)}
          {rects(EYE, 8)}
        </g>
        <g className="pg-pupils" fill="#2121de">
          <rect x="4" y="5" width="2" height="2" />
          <rect x="10" y="5" width="2" height="2" />
        </g>
      </svg>
      <div className="pg-shadow" />
    </div>
  );
}
PixelGhost.css
/*
 * PixelGhost — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
.pixel-ghost {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 180px;
}

.pg-ghost {
  width: 140px;
  height: 140px;
  animation: pg-float 2s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.5));
}

.pg-skirt-a { animation: pg-frame 0.4s steps(1) infinite; }
.pg-skirt-b { animation: pg-frame 0.4s steps(1) infinite reverse; }

.pg-pupils { animation: pg-look 3s steps(1) infinite; }

.pg-shadow {
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ff1744, #a855f7, #6366f1);
  filter: blur(14px);
  animation: pg-shadow-pulse 2s ease-in-out infinite;
}

@keyframes pg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pg-frame {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

/* glance right → straight → left, one pixel step at a time */
@keyframes pg-look {
  0% { transform: translateX(0); }
  33% { transform: translateX(-1px); }
  66% { transform: translateX(-2px); }
}

@keyframes pg-shadow-pulse {
  0%, 100% { transform: scale(1.1); opacity: 0.25; }
  50% { transform: scale(0.85); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-ghost * { animation: none !important; }
  .pg-skirt-b { opacity: 0; }
}

AI Blob

designed by Aaditya Jaiswar

AiBlob.jsx
'use client';

/*
 * AiBlob — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import { useEffect, useRef } from "react";

/**
 * AiBlob — realistic glass orb with a volumetric, morphing plasma core.
 * Zero dependencies (raw WebGL).
 *
 *   <AiBlob size={320} />
 *   <AiBlob size={200} speed={1.6} intensity={1.2} />   // e.g. "thinking"
 *
 * Props
 *   size       px, square (default 320)
 *   speed      animation speed multiplier (default 1)
 *   intensity  core/rim brightness (default 1)
 *   background CSS colour behind the orb (default transparent)
 */

/** @typedef {{ size?: number, speed?: number, intensity?: number, background?: string, className?: string, style?: import('react').CSSProperties }} AiBlobProps */

const VERT = `attribute vec2 a; void main(){ gl_Position = vec4(a, 0.0, 1.0); }`;

const FRAG = `
precision highp float;
uniform float uTime;
uniform vec2 uRes;
uniform float uIntensity;

#define TAU 6.28318530718

vec3 hash3(vec3 p){
  p = vec3(dot(p,vec3(127.1,311.7,74.7)),dot(p,vec3(269.5,183.3,246.1)),dot(p,vec3(113.5,271.9,124.6)));
  return -1.0 + 2.0*fract(sin(p)*43758.5453123);
}
float noise(vec3 p){
  vec3 i=floor(p), f=fract(p), u=f*f*(3.0-2.0*f);
  return mix(mix(mix(dot(hash3(i),f),dot(hash3(i+vec3(1,0,0)),f-vec3(1,0,0)),u.x),
                 mix(dot(hash3(i+vec3(0,1,0)),f-vec3(0,1,0)),dot(hash3(i+vec3(1,1,0)),f-vec3(1,1,0)),u.x),u.y),
             mix(mix(dot(hash3(i+vec3(0,0,1)),f-vec3(0,0,1)),dot(hash3(i+vec3(1,0,1)),f-vec3(1,0,1)),u.x),
                 mix(dot(hash3(i+vec3(0,1,1)),f-vec3(0,1,1)),dot(hash3(i+vec3(1,1,1)),f-vec3(1,1,1)),u.x),u.y),u.z);
}
float fbm(vec3 p){ float v=0.0,a=0.5; for(int i=0;i<3;i++){v+=a*noise(p);p=p*2.03+1.7;a*=0.5;} return v; }

// magenta <-> cyan <-> periwinkle cycle (matches reference)
vec3 hue(float t){
  vec3 m=vec3(1.0,0.12,0.92), c=vec3(0.10,1.0,0.92), b=vec3(0.55,0.62,1.0);
  float s=fract(t)*3.0;
  if(s<1.0) return mix(m,c,smoothstep(0.0,1.0,s));
  if(s<2.0) return mix(c,b,smoothstep(1.0,2.0,s));
  return mix(b,m,smoothstep(2.0,3.0,s));
}

vec3 coreCenter(float t){
  // slow orbit + noisy wander so the core roams around the orb
  vec3 orbit = 0.075*vec3(cos(t*0.42), sin(t*0.57), sin(t*0.33));
  vec3 wander = 0.11*vec3(noise(vec3(t*0.38,1.0,0.0)), noise(vec3(t*0.38,4.0,0.0)), noise(vec3(t*0.3,9.0,0.0)));
  return orbit + wander;
}

// metaball density of the plasma core in 3D
float coreField(vec3 p, float t){
  vec3 w = p + 0.12*vec3(fbm(p*5.0+vec3(0,0,t*0.7)), fbm(p*5.0+vec3(5.2,1.3,t*0.6)), fbm(p*5.0+vec3(2.1,7.7,t*0.65)));
  vec3 c0 = coreCenter(t);
  vec3 c1 = c0 + 0.13*vec3(sin(t*0.83), cos(t*0.61), sin(t*0.47));
  vec3 c2 = c0 + 0.16*vec3(cos(t*0.53+2.0), sin(t*0.71+1.0), cos(t*0.9));
  float br = 1.0 + 0.18*sin(t*1.25) + 0.12*noise(vec3(t*0.7,2.0,3.0));
  float f = 0.0095*br/dot(w-c0,w-c0)
          + 0.0042*br/dot(w-c1,w-c1)
          + 0.0024/dot(w-c2,w-c2);
  return f;
}

float sphereRim(float r, float R){
  float inside = smoothstep(R+0.002, R-0.002, r);
  float x = clamp(r/R,0.0,1.0);
  float fres = pow(x, 26.0)*inside;            // glass edge brightening
  float line = exp(-pow((r-R)/0.0035,2.0));     // crisp outline
  return fres*0.75 + line*0.7;
}

void main(){
  vec2 uv = (gl_FragCoord.xy - 0.5*uRes)/uRes.y;
  float t = uTime;
  float R = 0.40;
  float r = length(uv);
  float ang = atan(uv.y, uv.x);

  vec3 col = vec3(0.0);

  // ---------- volumetric core (raymarch through the sphere) ----------
  vec3 coreTint = hue(t*0.045);
  if(r < R){
    float zh = sqrt(R*R - r*r);
    float zMax = min(zh, 0.32);
    const int N = 22;
    float dz = 2.0*zMax/float(N);
    float jitter = fract(sin(dot(gl_FragCoord.xy,vec2(12.9898,78.233)))*43758.5453);
    for(int i=0;i<N;i++){
      float z = -zMax + (float(i)+jitter)*dz;
      vec3 p = vec3(uv, z);
      float f = coreField(p, t);
      float dens = smoothstep(0.55, 1.35, f);
      if(dens > 0.001){
        float local = fbm(p*3.0 + t*0.15);
        vec3 c = hue(t*0.045 + local*0.35);
        col += c * dens * dz * 17.0;
        vec3 n0 = p - coreCenter(t);
        col += vec3(1.0) * exp(-dot(n0,n0)/0.0024) * dens * dz * 70.0;   // single white-hot nucleus
      }
    }
  }

  // soft bloom halo around the core (2D, cheap)
  vec2 cc = coreCenter(t).xy;
  float dc = length(uv-cc);
  col += coreTint * exp(-dc*dc/0.022) * 0.22 * smoothstep(R, R-0.02, r);
  col += coreTint * exp(-dc/0.08) * 0.02;

  // ---------- glass shell with thin-film iridescence ----------
  // film thickness varies around the bubble and drifts over time
  float th = fbm(vec3(cos(ang)*1.2, sin(ang)*1.2, t*0.18)) + 0.25*sin(ang*1.0 + t*0.3);
  vec3 film = mix(hue(th*0.9 + t*0.03), coreTint, 0.2);
  // light "pooling" on parts of the rim (caustic-like bright arcs)
  float arcs = 0.10 + 2.2*pow(max(0.0, 0.5+1.0*noise(vec3(cos(ang)*1.6, sin(ang)*1.6, t*0.35))), 3.0);

  // chromatic dispersion: each channel sees the edge at a slightly different radius
  float ca = 0.0028;
  vec3 rim = vec3(sphereRim(r-ca,R), sphereRim(r,R), sphereRim(r+ca,R));
  col += rim * film * arcs * 1.25;

  // inner border gradient: a colour band hugging the inside of the rim,
  // sweeping magenta -> cyan -> periwinkle around the circle and rotating over time
  float a01 = ang/TAU;
  vec3 gradA = hue(a01 + t*0.06);
  vec3 gradB = hue(a01 + 0.45 - t*0.04);
  float mixAB = 0.5 + 0.5*sin(ang*2.0 + t*0.5);
  vec3 grad = mix(gradA, gradB, mixAB);
  float band = smoothstep(R*0.70, R, r);
  band = band*band*band * smoothstep(R+0.002, R-0.004, r);
  float bandVar = 0.55 + 0.45*noise(vec3(cos(ang)*2.0, sin(ang)*2.0, t*0.3));
  col += grad * band * bandVar * 0.8;

  // faint internal reflection ring
  float inner = exp(-pow((r-R*0.93)/0.012,2.0)) * 0.06;
  col += inner * film * arcs;

  // glass body: barely-there tint + core light scattering into the shell
  float body = smoothstep(R+0.002, R-0.002, r);
  col += body * (0.003 + 0.018*pow(r/R,6.0)) * mix(film, coreTint, 0.6);

  // soft specular highlight on the upper edge
  float specArc = exp(-pow((r-R*0.955)/0.007,2.0)) * exp(-pow((ang-2.05)/0.32,2.0));
  col += vec3(0.92,0.96,1.0) * specArc * 0.22;

  // ---------- tone map (bright colour saturates to white like a real emitter) ----------
  col *= uIntensity;
  col = 1.0 - exp(-col*1.35);
  col = pow(col, vec3(0.95));

  vec3 bg = vec3(0.039);
  float grain = (fract(sin(dot(gl_FragCoord.xy+t,vec2(12.9898,78.233)))*43758.5453)-0.5)/255.0;
  vec3 outc = bg + col*(1.0-bg) + grain;
  // transparent outside the glass so only the orb shows (premultiplied alpha)
  float a = smoothstep(R+0.012, R+0.002, r);
  gl_FragColor = vec4(outc*a, a);
}`;

/** @param {AiBlobProps} props */
export default function AiBlob({
  size = 320,
  speed = 1,
  intensity = 1,
  background = "transparent",
  className,
  style,
}) {
  const canvasRef = useRef(null);
  const propsRef = useRef({ speed, intensity });
  propsRef.current = { speed, intensity };

  useEffect(() => {
    const canvas = canvasRef.current;
    const gl = canvas?.getContext("webgl", { antialias: false, alpha: true });
    if (!gl) return;

    const compile = (type, src) => {
      const s = gl.createShader(type);
      gl.shaderSource(s, src);
      gl.compileShader(s);
      if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) console.error(gl.getShaderInfoLog(s));
      return s;
    };
    const vs = compile(gl.VERTEX_SHADER, VERT);
    const fs = compile(gl.FRAGMENT_SHADER, FRAG);
    const prog = gl.createProgram();
    gl.attachShader(prog, vs);
    gl.attachShader(prog, fs);
    gl.linkProgram(prog);
    gl.useProgram(prog);

    const buf = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, buf);
    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), gl.STATIC_DRAW);
    const loc = gl.getAttribLocation(prog, "a");
    gl.enableVertexAttribArray(loc);
    gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);

    const uTime = gl.getUniformLocation(prog, "uTime");
    const uRes = gl.getUniformLocation(prog, "uRes");
    const uIntensity = gl.getUniformLocation(prog, "uIntensity");

    const dpr = Math.min(window.devicePixelRatio || 1, 2);
    canvas.width = Math.round(size * dpr);
    canvas.height = Math.round(size * dpr);
    gl.viewport(0, 0, canvas.width, canvas.height);
    gl.uniform2f(uRes, canvas.width, canvas.height);

    // pause when offscreen / tab hidden
    let visible = true;
    const io = new IntersectionObserver(([e]) => (visible = e.isIntersecting));
    io.observe(canvas);

    const reduced = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;

    let raf;
    let t = 3.0; // start mid-cycle so the first frame already looks alive
    let last = performance.now();
    const loop = (now) => {
      const dt = Math.min((now - last) / 1000, 0.05);
      last = now;
      if (visible && !document.hidden) {
        t += dt * propsRef.current.speed * (reduced ? 0.25 : 1);
        gl.uniform1f(uTime, t);
        gl.uniform1f(uIntensity, propsRef.current.intensity);
        gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
      }
      raf = requestAnimationFrame(loop);
    };
    raf = requestAnimationFrame(loop);

    return () => {
      cancelAnimationFrame(raf);
      io.disconnect();
      gl.deleteBuffer(buf);
      gl.deleteProgram(prog);
      gl.deleteShader(vs);
      gl.deleteShader(fs);
    };
  }, [size]);

  return (
    <canvas
      ref={canvasRef}
      className={className}
      style={{ width: size, height: size, display: "block", background, ...style }}
      aria-hidden="true"
    />
  );
}

Toy Camera

designed by Aaditya Jaiswar

ToyCamera.jsx
/*
 * ToyCamera — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './ToyCamera.css';

// a checkbox: click to snap, the photo slides out
export default function ToyCamera() {
  return (
    <div className="toy-camera-container">
      <label className="toy-camera-wrapper">
        <input type="checkbox" className="toy-camera-input" aria-label="Take a photo" />
        <div className="toy-camera-body">
          <div className="toy-camera-button" />
          <div className="toy-camera-lens" />
          <div className="toy-camera-photo">
            <div className="photo-image" />
            <div className="photo-text" />
            <div className="photo-text" style={{ width: '40%' }} />
          </div>
        </div>
        <div className="toy-camera-shadow" />
      </label>
    </div>
  );
}
ToyCamera.css
/*
 * ToyCamera — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
.toy-camera-container {
  --cam-main: #b600a8;
  --cam-dark: #7621b0;
  --cam-accent: #e28bed;
  --cam-shutter: #ff7a1a;
  --cam-shutter-dark: #be4c00;
  --photo-bg: #ffffff;
  --toy-size: 5.5em;
  --elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  user-select: none;
}

.toy-camera-wrapper {
  position: relative;
  width: var(--toy-size);
  height: calc(var(--toy-size) * 0.9);
  perspective: 1200px;
  cursor: pointer;
}

.toy-camera-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toy-camera-body {
  position: absolute;
  inset: 0;
  background: var(--cam-main);
  border-radius: 1.2em;
  transform-style: preserve-3d;
  transform: translateZ(20px);
  transition: all 0.5s var(--elastic);
  box-shadow:
    0 0.6em 0 var(--cam-dark),
    0 1em 2em rgba(0, 0, 0, 0.25),
    inset 0 0.2em 0.3em rgba(255, 255, 255, 0.4);
  z-index: 10;
}

.toy-camera-body::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 15%;
  background: var(--cam-accent);
  box-shadow: inset 0 0.1em 0.2em rgba(0, 0, 0, 0.1);
}

.toy-camera-button {
  position: absolute;
  top: -0.6em;
  right: 15%;
  width: 1.2em;
  height: 0.8em;
  background: var(--cam-shutter);
  border-radius: 0.3em 0.3em 0 0;
  box-shadow:
    0 0.2em 0 var(--cam-shutter-dark),
    inset 0 0.1em 0.1em rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.toy-camera-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 65%;
  background: #17152d;
  border-radius: 50%;
  transform: translate(-50%, -40%) translateZ(15px);
  border: 0.3em solid var(--cam-dark);
  box-shadow:
    0 0.4em 0.8em rgba(0, 0, 0, 0.3),
    inset 0 0.2em 0.5em rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.toy-camera-lens::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 20%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.toy-camera-photo {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 75%;
  height: 80%;
  background: var(--photo-bg);
  border-radius: 0.4em;
  transform: translateX(-50%) translateZ(-10px) translateY(0);
  transition: all 0.7s var(--elastic);
  box-shadow:
    0 0.2em 0.5em rgba(0, 0, 0, 0.1),
    inset 0 0 0 0.2em #f3e8f6;
  display: flex;
  flex-direction: column;
  padding: 0.4em;
  opacity: 0;
  z-index: 1;
}

.photo-image {
  width: 100%;
  height: 70%;
  background: linear-gradient(160deg, #7621b0, #e28bed);
  border-radius: 0.2em;
  position: relative;
  overflow: hidden;
}

.photo-image::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 15%;
  width: 0.5em;
  height: 0.5em;
  background: #ffd36e;
  border-radius: 50%;
}

.photo-text {
  width: 60%;
  height: 0.2em;
  background: #ead7ef;
  margin-top: 0.4em;
  border-radius: 0.1em;
}

.toy-camera-wrapper:hover .toy-camera-body {
  transform: translateZ(40px) rotateX(10deg);
}

.toy-camera-input:active + .toy-camera-body {
  transform: translateZ(10px) scale(0.95);
}

.toy-camera-input:active + .toy-camera-body .toy-camera-button {
  transform: translateY(0.3em);
  box-shadow: 0 0.1em 0 var(--cam-shutter-dark);
}

.toy-camera-input:checked + .toy-camera-body {
  transform: translateZ(30px) translateY(-10%);
}

.toy-camera-input:checked + .toy-camera-body .toy-camera-photo {
  opacity: 1;
  transform: translateX(-50%) translateZ(-30px) translateY(120%) rotate(5deg);
  animation: tc-photo-bounce 0.8s var(--elastic);
}

.toy-camera-input:checked + .toy-camera-body .toy-camera-lens::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  animation: tc-lens-flash 0.4s ease-out;
}

.toy-camera-input:focus-visible + .toy-camera-body {
  outline: 3px solid #e28bed;
  outline-offset: 15px;
}

@keyframes tc-photo-bounce {
  0% { transform: translateX(-50%) translateZ(-30px) translateY(0); }
  100% { transform: translateX(-50%) translateZ(-30px) translateY(120%) rotate(5deg); }
}

@keyframes tc-lens-flash {
  0% { opacity: 1; transform: scale(0.1); }
  50% { opacity: 0.8; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2); }
}

.toy-camera-shadow {
  position: absolute;
  bottom: -1em;
  left: 50%;
  width: 90%;
  height: 1.5em;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
  transform: translateX(-50%);
  transition: all 0.5s ease;
  pointer-events: none;
}

.toy-camera-input:checked ~ .toy-camera-shadow {
  width: 120%;
  opacity: 0.1;
}

Orbit Sphere

designed by Aaditya Jaiswar

OrbitSphere.jsx
/*
 * OrbitSphere — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './OrbitSphere.css';

// 9 tinted rings, each made of 9 discs fanned around Y; the whole cage tumbles in 3D
const COLORS = ['#f008', '#f0f8', '#ff08', '#0f08', '#0ff8', '#00f8', '#dc1ddf88', '#ffa50088', '#e5b2ca88'];

export default function OrbitSphere() {
  return (
    <div className="orbit-sphere" aria-hidden="true">
      <div className="os-loader">
        {COLORS.map((bg, rot) => (
          <div key={rot} className="os-ring" style={{ '--rot': rot, '--bg': bg }}>
            {Array.from({ length: 9 }, (_, i) => (
              <div key={i} className="os-disc" style={{ '--rot-y': i + 1 }} />
            ))}
          </div>
        ))}
      </div>
    </div>
  );
}
OrbitSphere.css
/*
 * OrbitSphere — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
.orbit-sphere {
  --size: 200px;
  position: relative;
  width: var(--size);
  height: var(--size);
}

.os-loader,
.os-ring,
.os-disc {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  perspective: 10000px;
}

.os-loader {
  animation: os-tumble 8s linear infinite;
}

.os-ring {
  transform: rotate(calc(var(--rot) * 20deg));
}

.os-disc {
  border-radius: 50%;
  background: var(--bg);
  transform: rotateY(calc(var(--rot-y) * 40deg));
}

@keyframes os-tumble {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .os-loader { animation: none; }
}

Cute Ghost

designed by Aaditya Jaiswar

CuteGhost.jsx
/*
 * CuteGhost — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './CuteGhost.css';

export default function CuteGhost() {
  return (
    <div className="cute-ghost" aria-hidden="true">
      <div className="cg-ghost">
        <div className="cg-body">
          <div className="cg-eyes">
            <span />
            <span />
          </div>
          <div className="cg-mouth" />
          <div className="cg-tail">
            <span />
            <span />
            <span />
          </div>
          <div className="cg-arm cg-arm-left" />
          <div className="cg-arm cg-arm-right" />
        </div>
        <div className="cg-shadow" />
      </div>
      <div className="cg-track">
        <div className="cg-line" />
      </div>
    </div>
  );
}
CuteGhost.css
/*
 * CuteGhost — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
.cute-ghost {
  --ghost-color: #f4f4ff;
  --accent: #a78bfa;
  --dark: #25233a;
  position: relative;
  width: 14em;
  height: 10em;
  font-size: 15px;
}

.cg-ghost {
  position: relative;
  width: 100%;
  height: 7.5em;
  animation: cg-float 1.4s ease-in-out infinite;
}

.cg-body {
  position: absolute;
  left: 4em;
  top: 0.5em;
  z-index: 2;
  width: 6em;
  height: 6.2em;
  background: linear-gradient(135deg, #ffffff 0%, var(--ghost-color) 70%, #c9c5ed 100%);
  border-radius: 3em 3em 1em 1em;
  box-shadow: 0 0 25px #a78bfa55;
}

.cg-tail {
  position: absolute;
  bottom: -1em;
  left: 0;
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.cg-tail span {
  width: 2em;
  height: 2em;
  background: #e8e6f8;
  border-radius: 0 0 50% 50%;
}

.cg-eyes {
  position: absolute;
  top: 2em;
  left: 1.4em;
  display: flex;
  gap: 1.3em;
}

.cg-eyes span {
  width: 0.55em;
  height: 0.8em;
  background: var(--dark);
  border-radius: 50%;
  animation: cg-blink 3s infinite;
}

.cg-mouth {
  position: absolute;
  left: 2.7em;
  top: 3.2em;
  width: 0.65em;
  height: 0.8em;
  background: var(--dark);
  border-radius: 50%;
}

.cg-arm {
  position: absolute;
  top: 3em;
  width: 1.3em;
  height: 2em;
  background: #eeecfb;
  border-radius: 50%;
}

.cg-arm-left {
  left: -0.8em;
  transform: rotate(35deg);
  animation: cg-wave-left 1.2s ease-in-out infinite;
}

.cg-arm-right {
  right: -0.8em;
  transform: rotate(-35deg);
  animation: cg-wave-right 1.2s ease-in-out infinite;
}

.cg-shadow {
  position: absolute;
  left: 4.5em;
  bottom: 0.3em;
  width: 5em;
  height: 0.65em;
  background: #a78bfa44;
  border-radius: 50%;
  filter: blur(5px);
  animation: cg-shadow 1.4s ease-in-out infinite;
}

.cg-track {
  position: relative;
  width: 100%;
  height: 2.5em;
  overflow: hidden;
}

.cg-line {
  width: 50em;
  height: 0.5em;
  border-top: 0.5em dashed var(--accent);
  animation: cg-move-line 4s linear infinite;
}

@keyframes cg-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-1em) rotate(3deg); }
}

@keyframes cg-shadow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(0.65); opacity: 0.3; }
}

@keyframes cg-wave-left {
  0%, 100% { transform: rotate(35deg); }
  50% { transform: rotate(65deg); }
}

@keyframes cg-wave-right {
  0%, 100% { transform: rotate(-35deg); }
  50% { transform: rotate(-65deg); }
}

@keyframes cg-blink {
  0%, 45%, 50%, 100% { transform: scaleY(1); }
  47%, 49% { transform: scaleY(0.1); }
}

@keyframes cg-move-line {
  0% { transform: translateX(0); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateX(-70%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-ghost, .cg-shadow, .cg-arm, .cg-eyes span, .cg-line {
    animation: none;
  }
}

Hamster Wheel

designed by Aaditya Jaiswar

HamsterWheel.jsx
/*
 * HamsterWheel — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './HamsterWheel.css';

export default function HamsterWheel() {
  return (
    <div aria-label="Orange and tan hamster running in a metal wheel" role="img" className="wheel-and-hamster">
      <div className="wheel" />
      <div className="hamster">
        <div className="hamster__body">
          <div className="hamster__head">
            <div className="hamster__ear" />
            <div className="hamster__eye" />
            <div className="hamster__nose" />
          </div>
          <div className="hamster__limb hamster__limb--fr" />
          <div className="hamster__limb hamster__limb--fl" />
          <div className="hamster__limb hamster__limb--br" />
          <div className="hamster__limb hamster__limb--bl" />
          <div className="hamster__tail" />
        </div>
      </div>
      <div className="spoke" />
    </div>
  );
}
HamsterWheel.css
/*
 * HamsterWheel — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* everything scoped under .wheel-and-hamster so generic names (.wheel, .spoke) can't leak */
.wheel-and-hamster {
  --dur: 1s;
  position: relative;
  width: 12em;
  height: 12em;
  font-size: 14px;
}

.wheel-and-hamster .wheel,
.wheel-and-hamster .hamster,
.wheel-and-hamster .hamster div,
.wheel-and-hamster .spoke {
  position: absolute;
}

.wheel-and-hamster .wheel,
.wheel-and-hamster .spoke {
  border-radius: 50%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wheel-and-hamster .wheel {
  background: radial-gradient(100% 100% at center, hsla(0, 0%, 60%, 0) 47.8%, hsl(0, 0%, 60%) 48%);
  z-index: 2;
}

.wheel-and-hamster .hamster {
  animation: hw-hamster var(--dur) ease-in-out infinite;
  top: 50%;
  left: calc(50% - 3.5em);
  width: 7em;
  height: 3.75em;
  transform: rotate(4deg) translate(-0.8em, 1.85em);
  transform-origin: 50% 0;
  z-index: 1;
}

.wheel-and-hamster .hamster__head {
  animation: hw-head var(--dur) ease-in-out infinite;
  background: hsl(30, 90%, 55%);
  border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
  box-shadow: 0 -0.25em 0 hsl(30, 90%, 80%) inset, 0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
  top: 0;
  left: -2em;
  width: 2.75em;
  height: 2.5em;
  transform-origin: 100% 50%;
}

.wheel-and-hamster .hamster__ear {
  animation: hw-ear var(--dur) ease-in-out infinite;
  background: hsl(0, 90%, 85%);
  border-radius: 50%;
  box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
  top: -0.25em;
  right: -0.25em;
  width: 0.75em;
  height: 0.75em;
  transform-origin: 50% 75%;
}

.wheel-and-hamster .hamster__eye {
  animation: hw-eye var(--dur) linear infinite;
  background-color: hsl(0, 0%, 0%);
  border-radius: 50%;
  top: 0.375em;
  left: 1.25em;
  width: 0.5em;
  height: 0.5em;
}

.wheel-and-hamster .hamster__nose {
  background: hsl(0, 90%, 75%);
  border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
  top: 0.75em;
  left: 0;
  width: 0.2em;
  height: 0.25em;
}

.wheel-and-hamster .hamster__body {
  animation: hw-body var(--dur) ease-in-out infinite;
  background: hsl(30, 90%, 90%);
  border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
  box-shadow: 0.1em 0.75em 0 hsl(30, 90%, 55%) inset, 0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
  top: 0.25em;
  left: 2em;
  width: 4.5em;
  height: 3em;
  transform-origin: 17% 50%;
  transform-style: preserve-3d;
}

.wheel-and-hamster .hamster__limb--fr,
.wheel-and-hamster .hamster__limb--fl {
  clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
  top: 2em;
  left: 0.5em;
  width: 1em;
  height: 1.5em;
  transform-origin: 50% 0;
}

.wheel-and-hamster .hamster__limb--fr {
  animation: hw-fr-limb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
  transform: rotate(15deg) translateZ(-1px);
}

.wheel-and-hamster .hamster__limb--fl {
  animation: hw-fl-limb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
  transform: rotate(15deg);
}

.wheel-and-hamster .hamster__limb--br,
.wheel-and-hamster .hamster__limb--bl {
  border-radius: 0.75em 0.75em 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
  top: 1em;
  left: 2.8em;
  width: 1.5em;
  height: 2.5em;
  transform-origin: 50% 30%;
}

.wheel-and-hamster .hamster__limb--br {
  animation: hw-br-limb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
  transform: rotate(-25deg) translateZ(-1px);
}

.wheel-and-hamster .hamster__limb--bl {
  animation: hw-bl-limb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
  transform: rotate(-25deg);
}

.wheel-and-hamster .hamster__tail {
  animation: hw-tail var(--dur) linear infinite;
  background: hsl(0, 90%, 85%);
  border-radius: 0.25em 50% 50% 0.25em;
  box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
  top: 1.5em;
  right: -0.5em;
  width: 1em;
  height: 0.5em;
  transform: rotate(30deg) translateZ(-1px);
  transform-origin: 0.25em 0.25em;
}

.wheel-and-hamster .spoke {
  animation: hw-spoke var(--dur) linear infinite;
  background:
    radial-gradient(100% 100% at center, hsl(0, 0%, 60%) 4.8%, hsla(0, 0%, 60%, 0) 5%),
    linear-gradient(hsla(0, 0%, 55%, 0) 46.9%, hsl(0, 0%, 65%) 47% 52.9%, hsla(0, 0%, 65%, 0) 53%) 50% 50% / 99% 99% no-repeat;
}

@keyframes hw-hamster {
  from, to { transform: rotate(4deg) translate(-0.8em, 1.85em); }
  50% { transform: rotate(0) translate(-0.8em, 1.85em); }
}

@keyframes hw-head {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); }
}

@keyframes hw-eye {
  from, 90%, to { transform: scaleY(1); }
  95% { transform: scaleY(0); }
}

@keyframes hw-ear {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); }
}

@keyframes hw-body {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); }
}

@keyframes hw-fr-limb {
  from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); }
}

@keyframes hw-fl-limb {
  from, 25%, 50%, 75%, to { transform: rotate(-30deg); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); }
}

@keyframes hw-br-limb {
  from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); }
}

@keyframes hw-bl-limb {
  from, 25%, 50%, 75%, to { transform: rotate(20deg); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); }
}

@keyframes hw-tail {
  from, 25%, 50%, 75%, to { transform: rotate(30deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg) translateZ(-1px); }
}

@keyframes hw-spoke {
  from { transform: rotate(0); }
  to { transform: rotate(-1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-and-hamster * { animation: none !important; }
}

Shadow Walker

designed by Aaditya Jaiswar

ShadowWalker.jsx
/*
 * ShadowWalker — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './ShadowWalker.css';

export default function ShadowWalker() {
  return (
    <div className="shadow-walker" aria-hidden="true">
      <div className="sw-loader">
        <svg className="sw-legl" xmlns="http://www.w3.org/2000/svg" width="20.69332" height="68.19944" viewBox="0,0,20.69332,68.19944">
          <g transform="translate(-201.44063,-235.75466)">
            <g strokeMiterlimit={10}>
              <path d="M218.11971,301.20087c-2.20708,1.73229 -4.41416,0 -4.41416,0l-1.43017,-1.1437c-1.42954,-1.40829 -3.04351,-2.54728 -4.56954,-3.87927c-0.95183,-0.8308 -2.29837,-1.49883 -2.7652,-2.55433c-0.42378,-0.95815 0.14432,-2.02654 0.29355,-3.03399c0.41251,-2.78499 1.82164,-5.43386 2.41472,-8.22683c1.25895,-4.44509 2.73863,-8.98683 3.15318,-13.54796c0.22615,-2.4883 -0.21672,-5.0155 -0.00278,-7.50605c0.30636,-3.56649 1.24602,-7.10406 1.59992,-10.6738c0.29105,-2.93579 -0.00785,-5.9806 -0.00785,-8.93046c0,0 0,-2.44982 3.12129,-2.44982c3.12129,0 3.12129,2.44982 3.12129,2.44982c0,3.06839 0.28868,6.22201 -0.00786,9.27779c-0.34637,3.56935 -1.30115,7.10906 -1.59992,10.6738c-0.2103,2.50918 0.22586,5.05326 -0.00278,7.56284c-0.43159,4.7371 -1.94029,9.46317 -3.24651,14.07835c-0.47439,2.23403 -1.29927,4.31705 -2.05805,6.47156c-0.18628,0.52896 -0.1402,1.0974 -0.327,1.62624c-0.09463,0.26791 -0.64731,0.47816 -0.50641,0.73323c0.19122,0.34617 0.86423,0.3445 1.2346,0.58502c1.88637,1.22503 3.50777,2.79494 5.03,4.28305l0.96971,0.73991c0,0 2.20708,1.73229 0,3.46457z" fill="none" stroke="#191e2e" strokeWidth={7} />
            </g>
          </g>
        </svg>
        <svg className="sw-legr" xmlns="http://www.w3.org/2000/svg" width="41.02537" height="64.85502" viewBox="0,0,41.02537,64.85502">
          <g transform="translate(-241.54137,-218.44347)">
            <g strokeMiterlimit={10}>
              <path d="M279.06674,279.42662c-2.27967,1.98991 -6.08116,0.58804 -6.08116,0.58804l-2.47264,-0.92915c-2.58799,-1.18826 -5.31176,-2.08831 -7.99917,-3.18902c-1.67622,-0.68654 -3.82471,-1.16116 -4.93147,-2.13229c-1.00468,-0.88156 -0.69132,-2.00318 -0.92827,-3.00935c-0.65501,-2.78142 0.12275,-5.56236 -0.287,-8.37565c-0.2181,-4.51941 -0.17458,-9.16283 -1.60696,-13.68334c-0.78143,-2.46614 -2.50162,-4.88125 -3.30086,-7.34796c-1.14452,-3.53236 -1.40387,-7.12078 -2.48433,-10.66266c-0.88858,-2.91287 -2.63779,-5.85389 -3.93351,-8.74177c0,0 -1.07608,-2.39835 3.22395,-2.81415c4.30003,-0.41581 2.41605,1.98254 2.41605,1.98254c1.34779,3.00392 3.13072,6.05282 4.06444,9.0839c1.09065,3.54049 1.33011,7.13302 2.48433,10.66266c0.81245,2.48448 2.5308,4.917 3.31813,7.40431c1.48619,4.69506 1.48366,9.52281 1.71137,14.21503c0.32776,2.25028 0.10631,4.39942 0.00736,6.60975c-0.02429,0.54266 0.28888,1.09302 0.26382,1.63563c-0.01269,0.27488 -0.68173,0.55435 -0.37558,0.78529c0.41549,0.31342 1.34191,0.22213 1.95781,0.40826c3.13684,0.94799 6.06014,2.26892 8.81088,3.52298l1.66093,0.59519c0,0 6.76155,1.40187 4.48187,3.39177z" fill="none" stroke="#000000" strokeWidth={7} />
            </g>
          </g>
        </svg>
        <div className="sw-bod">
          <svg xmlns="http://www.w3.org/2000/svg" width="144.10576" height="144.91623" viewBox="0,0,144.10576,144.91623">
            <g transform="translate(-164.41679,-112.94712)">
              <g strokeMiterlimit={10}>
                <path d="M166.9168,184.02633c0,-36.49454 35.0206,-66.07921 72.05288,-66.07921c37.03228,0 67.05288,29.58467 67.05288,66.07921c0,6.94489 -1.08716,13.63956 -3.10292,19.92772c-2.71464,8.46831 -7.1134,16.19939 -12.809,22.81158c-2.31017,2.68194 -7.54471,12.91599 -7.54471,12.91599c0,0 -5.46714,-1.18309 -8.44434,0.6266c-3.86867,2.35159 -10.95356,10.86714 -10.95356,10.86714c0,0 -6.96906,-3.20396 -9.87477,-2.58085c-2.64748,0.56773 -6.72538,5.77072 -6.72538,5.77072c0,0 -5.5023,-4.25969 -7.5982,-4.25969c-3.08622,0 -9.09924,3.48259 -9.09924,3.48259c0,0 -6.0782,-5.11244 -9.00348,-5.91884c-4.26461,-1.17561 -12.23343,0.75049 -12.23343,0.75049c0,0 -5.18164,-8.26065 -7.60688,-9.90388c-3.50443,-2.37445 -8.8271,-3.95414 -8.8271,-3.95414c0,0 -5.33472,-8.81718 -7.27019,-11.40895c-4.81099,-6.44239 -13.46422,-9.83437 -15.65729,-17.76175c-1.53558,-5.55073 -2.35527,-21.36472 -2.35527,-21.36472z" fill="#191e2e" stroke="#000000" strokeWidth={5} strokeLinecap="butt" />
                <path d="M167.94713,180c0,-37.03228 35.0206,-67.05288 72.05288,-67.05288c37.03228,0 67.05288,30.0206 67.05288,67.05288c0,7.04722 -1.08716,13.84053 -3.10292,20.22135c-2.71464,8.59309 -7.1134,16.43809 -12.809,23.14771c-2.31017,2.72146 -7.54471,13.1063 -7.54471,13.1063c0,0 -5.46714,-1.20052 -8.44434,0.63584c-3.86867,2.38624 -10.95356,11.02726 -10.95356,11.02726c0,0 -6.96906,-3.25117 -9.87477,-2.61888c-2.64748,0.5761 -6.72538,5.85575 -6.72538,5.85575c0,0 -5.5023,-4.32246 -7.5982,-4.32246c-3.08622,0 -9.09924,3.5339 -9.09924,3.5339c0,0 -6.0782,-5.18777 -9.00348,-6.00605c-4.26461,-1.19293 -12.23343,0.76155 -12.23343,0.76155c0,0 -5.18164,-8.38236 -7.60688,-10.04981c-3.50443,-2.40943 -8.8271,-4.0124 -8.8271,-4.0124c0,0 -5.33472,-8.9471 -7.27019,-11.57706c-4.81099,-6.53732 -13.46422,-9.97928 -15.65729,-18.02347c-1.53558,-5.63252 -2.35527,-21.67953 -2.35527,-21.67953z" fill="#191e2e" stroke="none" strokeWidth={0} strokeLinecap="butt" />
                <path d="M216.22445,188.06994c0,0 1.02834,11.73245 -3.62335,21.11235c-4.65169,9.3799 -13.06183,10.03776 -13.06183,10.03776c0,0 7.0703,-3.03121 10.89231,-10.7381c4.34839,-8.76831 5.79288,-20.41201 5.79288,-20.41201z" fill="none" stroke="#2f3a50" strokeWidth={3} strokeLinecap="round" />
              </g>
            </g>
          </svg>
          <svg className="sw-head" xmlns="http://www.w3.org/2000/svg" width="115.68559" height="88.29441" viewBox="0,0,115.68559,88.29441">
            <g transform="translate(-191.87889,-75.62023)">
              <g strokeMiterlimit={10}>
                <path d="M195.12889,128.77752c0,-26.96048 21.33334,-48.81626 47.64934,-48.81626c26.316,0 47.64935,21.85578 47.64935,48.81626c0,0.60102 -9.22352,20.49284 -9.22352,20.49284l-7.75885,0.35623l-7.59417,6.15039l-8.64295,-1.74822l-11.70703,6.06119l-6.38599,-4.79382l-6.45999,2.36133l-7.01451,-7.38888l-8.11916,1.29382l-6.19237,-6.07265l-7.6263,-1.37795l-4.19835,-7.87062l-4.24236,-4.16907c0,0 -0.13314,-2.0999 -0.13314,-3.29458z" fill="none" stroke="#2f3a50" strokeWidth={6} strokeLinecap="butt" />
                <path d="M195.31785,124.43649c0,-26.96048 21.33334,-48.81626 47.64934,-48.81626c26.316,0 47.64935,21.85578 47.64935,48.81626c0,1.03481 -0.08666,2.8866 -0.08666,2.8866c0,0 16.8538,15.99287 16.21847,17.23929c-0.66726,1.30905 -23.05667,-4.14265 -23.05667,-4.14265l-2.29866,4.5096l-7.75885,0.35623l-7.59417,6.15039l-8.64295,-1.74822l-11.70703,6.06119l-6.38599,-4.79382l-6.45999,2.36133l-7.01451,-7.38888l-8.11916,1.29382l-6.19237,-6.07265l-7.6263,-1.37795l-4.19835,-7.87062l-4.24236,-4.16907c0,0 -0.13314,-2.0999 -0.13314,-3.29458z" fill="#191e2e" strokeOpacity="0.48627" stroke="#ffffff" strokeWidth={0} strokeLinecap="butt" />
                <path d="M271.10348,122.46768l10.06374,-3.28166l24.06547,24.28424" fill="none" stroke="#2f3a50" strokeWidth={6} strokeLinecap="round" />
                <path d="M306.56448,144.85764l-41.62024,-8.16845l2.44004,-7.87698" fill="none" stroke="#000000" strokeWidth="3.5" strokeLinecap="round" />
                <path d="M276.02738,115.72434c-0.66448,-4.64715 2.56411,-8.95308 7.21127,-9.61756c4.64715,-0.66448 8.95309,2.56411 9.61757,7.21126c0.46467,3.24972 -1.94776,8.02206 -5.96624,9.09336c-2.11289,-1.73012 -5.08673,-5.03426 -5.08673,-5.03426c0,0 -4.12095,1.16329 -4.60481,1.54229c-0.16433,-0.04891 -0.62732,-0.38126 -0.72803,-0.61269c-0.30602,-0.70328 -0.36302,-2.02286 -0.44303,-2.58239z" fill="#ffffff" stroke="none" strokeWidth="0.5" strokeLinecap="butt" />
                <path d="M242.49281,125.6424c0,-4.69442 3.80558,-8.5 8.5,-8.5c4.69442,0 8.5,3.80558 8.5,8.5c0,4.69442 -3.80558,8.5 -8.5,8.5c-4.69442,0 -8.5,-3.80558 -8.5,-8.5z" fill="#ffffff" stroke="none" strokeWidth="0.5" strokeLinecap="butt" />
              </g>
            </g>
          </svg>
        </div>
        <svg className="sw-gnd" xmlns="http://www.w3.org/2000/svg" width={475} height={530} viewBox="0,0,163.40011,85.20095">
          <g transform="translate(-176.25,-207.64957)">
            <g stroke="#000000" strokeWidth="2.5" strokeLinecap="round" strokeMiterlimit={10}>
              <path d="M295.5,273.1829c0,0 -57.38915,6.69521 -76.94095,-9.01465c-13.65063,-10.50609 15.70098,-20.69467 -2.5451,-19.94465c-30.31027,2.05753 -38.51396,-26.84135 -38.51396,-26.84135c0,0 6.50084,13.30023 18.93224,19.17888c9.53286,4.50796 26.23632,-1.02541 32.09529,4.95137c3.62417,3.69704 2.8012,6.33005 0.66517,8.49452c-3.79415,3.84467 -11.7312,6.21103 -6.24682,10.43645c22.01082,16.95812 72.55412,12.73944 72.55412,12.73944z" fill="#000000" />
              <path d="M338.92138,217.76285c0,0 -17.49626,12.55408 -45.36424,10.00353c-8.39872,-0.76867 -17.29557,-6.23066 -17.29557,-6.23066c0,0 3.06461,-2.23972 15.41857,0.72484c26.30467,6.31228 47.24124,-4.49771 47.24124,-4.49771z" fill="#000000" />
              <path d="M209.14443,223.00182l1.34223,15.4356l-10.0667,-15.4356" fill="none" />
              <path d="M198.20391,230.41806l12.95386,7.34824l6.71113,-12.08004" fill="none" />
              <path d="M211.19621,238.53825l8.5262,-6.09014" fill="none" />
              <path d="M317.57068,215.80173l5.27812,6.49615l0.40601,-13.39831" fill="none" />
              <path d="M323.66082,222.70389l6.09014,-9.33822" fill="none" />
            </g>
          </g>
        </svg>
      </div>
    </div>
  );
}
ShadowWalker.css
/*
 * ShadowWalker — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* fixed box + clip: the scrolling ground svg is far wider than the walker */
.shadow-walker {
  position: relative;
  width: 200px;
  height: 210px;
  overflow: hidden;
  isolation: isolate;
}

.sw-loader {
  scale: 0.75;
  position: relative;
  width: 200px;
  height: 200px;
  translate: 10px -20px;
}

.sw-loader svg {
  position: absolute;
  top: 0;
  left: 0;
}

.sw-head {
  translate: 27px -30px;
  z-index: 3;
  animation: sw-bob 1s infinite ease-in;
}

.sw-bod {
  translate: 0px 30px;
  z-index: 3;
  animation: sw-bob 1s infinite ease-in-out;
}

.sw-legr {
  translate: 75px 135px;
  z-index: 0;
  animation: sw-rstep 1s infinite ease-in;
  animation-delay: 0.45s;
}

.sw-legl {
  translate: 30px 155px;
  z-index: 3;
  animation: sw-lstep 1s infinite ease-in;
}

.sw-gnd {
  translate: -140px 0;
  rotate: 10deg;
  z-index: -1;
  filter: blur(0.5px) drop-shadow(1px 3px 5px #000000);
  opacity: 0.25;
  animation: sw-scroll 5s infinite linear;
}

@keyframes sw-bob {
  0% { transform: translateY(0) rotate(3deg); }
  5% { transform: translateY(0) rotate(3deg); }
  25% { transform: translateY(5px) rotate(0deg); }
  50% { transform: translateY(0px) rotate(-3deg); }
  70% { transform: translateY(5px) rotate(0deg); }
  100% { transform: translateY(0) rotate(3deg); }
}

@keyframes sw-lstep {
  0% { transform: translateY(0) rotate(-5deg); }
  33% { transform: translateY(-15px) translate(32px) rotate(35deg); }
  66% { transform: translateY(0) translate(25px) rotate(-25deg); }
  100% { transform: translateY(0) rotate(-5deg); }
}

@keyframes sw-rstep {
  0% { transform: translateY(0) translate(0px) rotate(-5deg); }
  33% { transform: translateY(-10px) translate(30px) rotate(35deg); }
  66% { transform: translateY(0) translate(20px) rotate(-25deg); }
  100% { transform: translateY(0) translate(0px) rotate(-5deg); }
}

@keyframes sw-scroll {
  0% { transform: translateY(25px) translate(50px); opacity: 0; }
  33% { opacity: 0.25; }
  66% { opacity: 0.25; }
  to { transform: translateY(-50px) translate(-100px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shadow-walker * { animation: none !important; }
}

Astronaut

designed by Aaditya Jaiswar

Astronaut.jsx
/*
 * Astronaut — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './Astronaut.css';

// 4 identical star layers fall on staggered delays so the sky never empties
const Stars = ({ layer }) => (
  <div className={`star-box star-box${layer}`}>
    {Array.from({ length: 7 }, (_, i) => (
      <div key={i} className={`star star-position${i + 1}`} />
    ))}
  </div>
);

export default function Astronaut() {
  return (
    <div className="astronaut-space" aria-hidden="true">
      {[1, 2, 3, 4].map(layer => <Stars key={layer} layer={layer} />)}
      <div className="astronaut">
        <div className="head" />
        <div className="arm arm-left" />
        <div className="arm arm-right" />
        <div className="body">
          <div className="panel" />
        </div>
        <div className="leg leg-left" />
        <div className="leg leg-right" />
        <div className="schoolbag" />
      </div>
    </div>
  );
}
Astronaut.css
/*
 * Astronaut — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* self-contained 220px space tile; everything scoped under .astronaut-space so .head/.body/.arm can't leak */
.astronaut-space {
  position: relative;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, #1b2140 0%, #0b0d1c 70%);
}

.astronaut-space .star-box {
  position: absolute;
  z-index: 10;
  left: 0;
  top: -60px;
  width: 100%;
  height: 100%;
}

.astronaut-space .star-box1 { animation: astro-snow 5s linear infinite; }
.astronaut-space .star-box2 { animation: astro-snow 5s -1.64s linear infinite; }
.astronaut-space .star-box3 { animation: astro-snow 5s -2.3s linear infinite; }
.astronaut-space .star-box4 { animation: astro-snow 5s -3.3s linear infinite; }

.astronaut-space .star {
  position: absolute;
  z-index: 10;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.7;
}

.astronaut-space .star::before,
.astronaut-space .star::after {
  content: '';
  position: absolute;
  z-index: 10;
  border-radius: 50%;
  background-color: #fff;
}

.astronaut-space .star::before {
  top: 40px;
  left: 35px;
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

.astronaut-space .star::after {
  top: 8px;
  left: 80px;
  width: 5px;
  height: 5px;
  opacity: 0.9;
}

.astronaut-space .star-position1 { top: 30px; left: 6px; }
.astronaut-space .star-position2 { top: 110px; left: 40px; }
.astronaut-space .star-position3 { top: 60px; left: 85px; }
.astronaut-space .star-position4 { top: 120px; left: 125px; }
.astronaut-space .star-position5 { top: 20px; left: 150px; }
.astronaut-space .star-position6 { top: 90px; left: 180px; }
.astronaut-space .star-position7 { top: 30px; left: 205px; }

.astronaut-space .astronaut {
  position: absolute;
  z-index: 11;
  top: calc(50% - 150px);
  left: calc(50% - 125px);
  width: 250px;
  height: 300px;
  scale: 0.6;
  animation: astro-spin 5s linear infinite;
}

.astronaut-space .schoolbag {
  position: absolute;
  z-index: 1;
  top: calc(50% - 75px);
  left: calc(50% - 50px);
  width: 100px;
  height: 150px;
  background-color: #94b7ca;
  border-radius: 50px 50px 0 0 / 30px 30px 0 0;
}

.astronaut-space .head {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: calc(50% - 47.5px);
  width: 97px;
  height: 80px;
  background: linear-gradient(to right, #e3e8eb 0%, #e3e8eb 50%, #fbfdfa 50%, #fbfdfa 100%);
  border-radius: 50%;
}

.astronaut-space .head::after {
  content: '';
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 30px);
  width: 60px;
  height: 50px;
  background: linear-gradient(to bottom, #15aece 0%, #15aece 50%, #0391bf 50%, #0391bf 100%);
  border-radius: 15px;
}

.astronaut-space .head::before {
  content: '';
  position: absolute;
  top: calc(50% - 12.5px);
  left: -4px;
  width: 12px;
  height: 25px;
  background-color: #618095;
  border-radius: 5px;
  box-shadow: 92px 0px 0px #618095;
}

.astronaut-space .body {
  position: absolute;
  z-index: 2;
  top: 105px;
  left: calc(50% - 41px);
  width: 85px;
  height: 100px;
  background: linear-gradient(to right, #e3e8eb 0%, #e3e8eb 50%, #fbfdfa 50%, #fbfdfa 100%);
  border-radius: 40px / 20px;
}

.astronaut-space .panel {
  position: absolute;
  top: 20px;
  left: calc(50% - 30px);
  width: 60px;
  height: 40px;
  background-color: #b7cceb;
}

.astronaut-space .panel::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 7px;
  width: 30px;
  height: 5px;
  background-color: #fbfdfa;
  box-shadow: 0px 9px 0px #fbfdfa, 0px 18px 0px #fbfdfa;
}

.astronaut-space .panel::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 7px;
  width: 8px;
  height: 8px;
  background-color: #fbfdfa;
  border-radius: 50%;
  box-shadow: 0px 14px 0px 2px #fbfdfa;
}

.astronaut-space .arm {
  position: absolute;
  z-index: 2;
  top: 121px;
  width: 80px;
  height: 30px;
}

.astronaut-space .arm-left {
  left: 30px;
  background-color: #e3e8eb;
  border-radius: 0 0 0 39px;
}

.astronaut-space .arm-right {
  right: 30px;
  background-color: #fbfdfa;
  border-radius: 0 0 39px 0;
}

.astronaut-space .arm-left::before,
.astronaut-space .arm-right::before {
  content: '';
  position: absolute;
  top: -40px;
  width: 30px;
  height: 70px;
}

.astronaut-space .arm-left::before {
  left: 0;
  background-color: #e3e8eb;
  border-radius: 50px 50px 0px 120px / 50px 50px 0 110px;
}

.astronaut-space .arm-right::before {
  right: 0;
  background-color: #fbfdfa;
  border-radius: 50px 50px 120px 0 / 50px 50px 110px 0;
}

.astronaut-space .arm-left::after,
.astronaut-space .arm-right::after {
  content: '';
  position: absolute;
  top: -24px;
  width: 30px;
  height: 10px;
}

.astronaut-space .arm-left::after {
  left: 0;
  background-color: #6e91a4;
}

.astronaut-space .arm-right::after {
  right: 0;
  background-color: #b6d2e0;
}

.astronaut-space .leg {
  position: absolute;
  z-index: 2;
  bottom: 70px;
  width: 30px;
  height: 40px;
}

.astronaut-space .leg-left {
  left: 76px;
  background-color: #e3e8eb;
  transform: rotate(20deg);
}

.astronaut-space .leg-right {
  right: 73px;
  background-color: #fbfdfa;
  transform: rotate(-20deg);
}

.astronaut-space .leg-left::before,
.astronaut-space .leg-right::before {
  content: '';
  position: absolute;
  bottom: -26px;
  width: 50px;
  height: 25px;
}

.astronaut-space .leg-left::before {
  left: -20px;
  background-color: #e3e8eb;
  border-radius: 30px 0 0 0;
  border-bottom: 10px solid #6d96ac;
}

.astronaut-space .leg-right::before {
  right: -20px;
  background-color: #fbfdfa;
  border-radius: 0 30px 0 0;
  border-bottom: 10px solid #b0cfe4;
}

@keyframes astro-snow {
  0% { opacity: 0; transform: translateY(0px); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: translateY(260px); }
}

@keyframes astro-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .astronaut-space * { animation: none !important; }
}

Pixel Torch

designed by Aaditya Jaiswar

PixelTorch.jsx
/*
 * PixelTorch — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './PixelTorch.css';

// a checkbox: click to light / snuff the voxel torch
const cells = n => Array.from({ length: n }, (_, i) => <div key={i} />);

export default function PixelTorch() {
  return (
    <label className="pixel-torch">
      <div className="simple-text">Click me!</div>
      <input defaultChecked type="checkbox" aria-label="Light the torch" />
      <div className="torch">
        <div className="head">
          <div className="face top">{cells(4)}</div>
          <div className="face left">{cells(4)}</div>
          <div className="face right">{cells(4)}</div>
        </div>
        <div className="stick">
          <div className="side side-left">{cells(16)}</div>
          <div className="side side-right">{cells(16)}</div>
        </div>
      </div>
    </label>
  );
}
PixelTorch.css
/*
 * PixelTorch — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* everything scoped under .pixel-torch so .head/.face/.side can't leak */
.pixel-torch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.pixel-torch input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.pixel-torch input:focus-visible ~ .torch {
  outline: 2px solid #ffd800;
  outline-offset: 12px;
}

.pixel-torch .simple-text {
  position: absolute;
  bottom: -40px;
  width: 120px;
  text-align: center;
  color: white;
  font-size: 16pt;
  font-weight: 800;
  font-family: monospace;
}

.pixel-torch .torch {
  display: flex;
  justify-content: center;
  height: 150px;
}

.pixel-torch .head,
.pixel-torch .stick {
  position: absolute;
  width: 30px;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(45deg);
}

.pixel-torch .stick {
  position: relative;
  height: 120px;
}

.pixel-torch .face {
  position: absolute;
  transform-style: preserve-3d;
  width: 30px;
  height: 30px;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 50% 50%;
  background-color: #000000;
}

.pixel-torch .top { transform: rotateX(90deg) translateZ(15px); }
.pixel-torch .left { transform: rotateY(-90deg) translateZ(15px); }
.pixel-torch .right { transform: rotateY(0deg) translateZ(15px); }

.pixel-torch .face div {
  width: 102%;
  height: 102%;
}

.pixel-torch .top div:nth-child(1),
.pixel-torch .left div:nth-child(3),
.pixel-torch .right div:nth-child(3) { background-color: #ffff9760; }

.pixel-torch .top div:nth-child(2),
.pixel-torch .left div:nth-child(1),
.pixel-torch .right div:nth-child(1) { background-color: #ffd80060; }

.pixel-torch .top div:nth-child(3),
.pixel-torch .left div:nth-child(4),
.pixel-torch .right div:nth-child(4) { background-color: #ffffff60; }

.pixel-torch .top div:nth-child(4),
.pixel-torch .left div:nth-child(2),
.pixel-torch .right div:nth-child(2) { background-color: #ff8f0060; }

.pixel-torch .side {
  position: absolute;
  width: 30px;
  height: 120px;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: repeat(8, 12.5%);
  cursor: pointer;
  translate: 0 12px;
}

.pixel-torch .side-left { transform: rotateY(-90deg) translateZ(15px) translateY(8px); }
.pixel-torch .side-right { transform: rotateY(0deg) translateZ(15px) translateY(8px); }

.pixel-torch .side div {
  width: 103%;
  height: 103%;
}

/* unlit wood */
.pixel-torch .side div:nth-child(1) { background-color: #443622; }
.pixel-torch .side div:nth-child(2) { background-color: #2e2517; }
.pixel-torch .side div:nth-child(3),
.pixel-torch .side div:nth-child(5) { background-color: #4b3b23; }
.pixel-torch .side div:nth-child(4),
.pixel-torch .side div:nth-child(10) { background-color: #251e12; }
.pixel-torch .side div:nth-child(6) { background-color: #292115; }
.pixel-torch .side div:nth-child(7) { background-color: #4b3c26; }
.pixel-torch .side div:nth-child(8) { background-color: #292115; }
.pixel-torch .side div:nth-child(9) { background-color: #4b3a21; }
.pixel-torch .side div:nth-child(11),
.pixel-torch .side div:nth-child(15) { background-color: #3d311d; }
.pixel-torch .side div:nth-child(12) { background-color: #2c2315; }
.pixel-torch .side div:nth-child(13) { background-color: #493a22; }
.pixel-torch .side div:nth-child(14) { background-color: #2b2114; }
.pixel-torch .side div:nth-child(16) { background-color: #271e10; }

/* lit */
.pixel-torch input:checked ~ .torch .face {
  filter: drop-shadow(0px 0px 2px rgb(255, 255, 255))
    drop-shadow(0px 0px 10px rgba(255, 237, 156, 0.7))
    drop-shadow(0px 0px 25px rgba(255, 227, 101, 0.4));
}

.pixel-torch input:checked ~ .torch .top div:nth-child(1),
.pixel-torch input:checked ~ .torch .left div:nth-child(3),
.pixel-torch input:checked ~ .torch .right div:nth-child(3) { background-color: #ffff97; }

.pixel-torch input:checked ~ .torch .top div:nth-child(2),
.pixel-torch input:checked ~ .torch .left div:nth-child(1),
.pixel-torch input:checked ~ .torch .right div:nth-child(1) { background-color: #ffd800; }

.pixel-torch input:checked ~ .torch .top div:nth-child(3),
.pixel-torch input:checked ~ .torch .left div:nth-child(4),
.pixel-torch input:checked ~ .torch .right div:nth-child(4) { background-color: #ffffff; }

.pixel-torch input:checked ~ .torch .top div:nth-child(4),
.pixel-torch input:checked ~ .torch .left div:nth-child(2),
.pixel-torch input:checked ~ .torch .right div:nth-child(2) { background-color: #ff8f00; }

.pixel-torch input:checked ~ .torch .side div:nth-child(1) { background-color: #7c623e; }
.pixel-torch input:checked ~ .torch .side div:nth-child(2) { background-color: #4c3d26; }
.pixel-torch input:checked ~ .torch .side div:nth-child(3),
.pixel-torch input:checked ~ .torch .side div:nth-child(5) { background-color: #937344; }
.pixel-torch input:checked ~ .torch .side div:nth-child(4),
.pixel-torch input:checked ~ .torch .side div:nth-child(10) { background-color: #3c2f1c; }
.pixel-torch input:checked ~ .torch .side div:nth-child(6) { background-color: #423522; }
.pixel-torch input:checked ~ .torch .side div:nth-child(7) { background-color: #9f7f50; }
.pixel-torch input:checked ~ .torch .side div:nth-child(8) { background-color: #403320; }
.pixel-torch input:checked ~ .torch .side div:nth-child(9) { background-color: #977748; }
.pixel-torch input:checked ~ .torch .side div:nth-child(11),
.pixel-torch input:checked ~ .torch .side div:nth-child(15) { background-color: #675231; }
.pixel-torch input:checked ~ .torch .side div:nth-child(12) { background-color: #3d301d; }
.pixel-torch input:checked ~ .torch .side div:nth-child(13) { background-color: #987849; }
.pixel-torch input:checked ~ .torch .side div:nth-child(14) { background-color: #3b2e1b; }
.pixel-torch input:checked ~ .torch .side div:nth-child(16) { background-color: #372a17; }

BB-8 Toggle

designed by Aaditya Jaiswar

Bb8Toggle.jsx
/*
 * Bb8Toggle — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './Bb8Toggle.css';

export default function Bb8Toggle() {
  return (
    <label className="bb8-toggle">
      <input className="bb8-toggle__checkbox" type="checkbox" aria-label="Toggle day and night" />
      <div className="bb8-toggle__container">
        <div className="bb8-toggle__scenery">
          {Array.from({ length: 7 }, (_, i) => <div key={i} className="bb8-toggle__star" />)}
          <div className="tatto-1" />
          <div className="tatto-2" />
          <div className="gomrassen" />
          <div className="hermes" />
          <div className="chenini" />
          <div className="bb8-toggle__cloud" />
          <div className="bb8-toggle__cloud" />
          <div className="bb8-toggle__cloud" />
        </div>
        <div className="bb8">
          <div className="bb8__head-container">
            <div className="bb8__antenna" />
            <div className="bb8__antenna" />
            <div className="bb8__head" />
          </div>
          <div className="bb8__body" />
        </div>
        <div className="artificial__hidden">
          <div className="bb8__shadow" />
        </div>
      </div>
    </label>
  );
}
Bb8Toggle.css
/*
 * Bb8Toggle — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* everything scoped under .bb8-toggle so generic names (.hermes, .tatto-1) can't leak; everything scales with font-size */
.bb8-toggle {
  --toggle-size: 16px;
  --toggle-width: 10.625em;
  --toggle-height: 5.625em;
  --toggle-offset: calc((var(--toggle-height) - var(--bb8-diameter)) / 2);
  --toggle-bg: linear-gradient(#2c4770, #070e2b 35%, #628cac 50% 70%, #a6c5d4) no-repeat;
  --bb8-diameter: 4.375em;
  --radius: 99em;
  --transition: 0.4s;
  --accent: #de7d2f;
  --bb8-bg: #fff;
  cursor: pointer;
  font-size: var(--toggle-size);
  /* room for the head that pokes above the track */
  margin-top: 1.75em;
}

.bb8-toggle,
.bb8-toggle *,
.bb8-toggle *::before,
.bb8-toggle *::after {
  box-sizing: border-box;
}

/* visually hidden but still keyboard-focusable */
.bb8-toggle .bb8-toggle__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bb8-toggle .bb8-toggle__checkbox:focus-visible + .bb8-toggle__container {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.bb8-toggle .bb8-toggle__container {
  width: var(--toggle-width);
  height: var(--toggle-height);
  background: var(--toggle-bg);
  background-size: 100% 11.25em;
  background-position-y: -5.625em;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.bb8-toggle .bb8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: calc(var(--toggle-offset) - 1.688em + 0.188em);
  left: var(--toggle-offset);
  transition: var(--transition);
  z-index: 2;
}

.bb8-toggle .bb8__head-container {
  position: relative;
  transition: var(--transition);
  z-index: 2;
  transform-origin: 1.25em 3.75em;
}

.bb8-toggle .bb8__head {
  overflow: hidden;
  margin-bottom: -0.188em;
  width: 2.5em;
  height: 1.688em;
  background:
    linear-gradient(transparent 0.063em, dimgray 0.063em 0.313em, transparent 0.313em 0.375em,
      var(--accent) 0.375em 0.5em, transparent 0.5em 1.313em, silver 1.313em 1.438em, transparent 1.438em),
    linear-gradient(45deg, transparent 0.188em, var(--bb8-bg) 0.188em 1.25em, transparent 1.25em),
    linear-gradient(-45deg, transparent 0.188em, var(--bb8-bg) 0.188em 1.25em, transparent 1.25em),
    linear-gradient(var(--bb8-bg) 1.25em, transparent 1.25em);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.063em 0.125em gray);
}

.bb8-toggle .bb8__head::before {
  content: "";
  position: absolute;
  width: 0.563em;
  height: 0.563em;
  background:
    radial-gradient(0.125em circle at 0.25em 0.375em, red, transparent),
    radial-gradient(0.063em circle at 0.375em 0.188em, var(--bb8-bg) 50%, transparent 100%),
    linear-gradient(45deg, #000 0.188em, dimgray 0.313em 0.375em, #000 0.5em);
  border-radius: var(--radius);
  top: 0.413em;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 0 0 0.089em lightgray, 0.563em 0.281em 0 -0.148em,
    0.563em 0.281em 0 -0.1em var(--bb8-bg), 0.563em 0.281em 0 -0.063em;
  z-index: 1;
  transition: var(--transition);
}

.bb8-toggle .bb8__head::after {
  content: "";
  position: absolute;
  bottom: 0.375em;
  left: 0;
  width: 100%;
  height: 0.188em;
  background: linear-gradient(to right,
    var(--accent) 0.125em, transparent 0.125em 0.188em,
    var(--accent) 0.188em 0.313em, transparent 0.313em 0.375em,
    var(--accent) 0.375em 0.938em, transparent 0.938em 1em,
    var(--accent) 1em 1.125em, transparent 1.125em 1.875em,
    var(--accent) 1.875em 2em, transparent 2em 2.063em,
    var(--accent) 2.063em 2.25em, transparent 2.25em 2.313em,
    var(--accent) 2.313em 2.375em, transparent 2.375em 2.438em,
    var(--accent) 2.438em);
  transition: var(--transition);
}

.bb8-toggle .bb8__antenna {
  position: absolute;
  transform: translateY(-90%);
  width: 0.059em;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}

.bb8-toggle .bb8__antenna:nth-child(1) {
  height: 0.938em;
  right: 0.938em;
  background: linear-gradient(#000 0.188em, silver 0.188em);
}

.bb8-toggle .bb8__antenna:nth-child(2) {
  height: 0.375em;
  left: 50%;
  transform: translate(-50%, -90%);
  background: silver;
}

.bb8-toggle .bb8__body {
  width: 4.375em;
  height: 4.375em;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
  transform: rotate(45deg);
  background:
    linear-gradient(-90deg, var(--bb8-bg) 4%, var(--accent) 4% 10%, transparent 10% 90%, var(--accent) 90% 96%, var(--bb8-bg) 96%),
    linear-gradient(var(--bb8-bg) 4%, var(--accent) 4% 10%, transparent 10% 90%, var(--accent) 90% 96%, var(--bb8-bg) 96%),
    linear-gradient(to right, transparent 2.156em, silver 2.156em 2.219em, transparent 2.188em),
    linear-gradient(transparent 2.156em, silver 2.156em 2.219em, transparent 2.188em);
  background-color: var(--bb8-bg);
}

.bb8-toggle .bb8__body::after {
  content: "";
  bottom: 1.5em;
  left: 0.563em;
  position: absolute;
  width: 0.188em;
  height: 0.188em;
  background: rgb(236, 236, 236);
  color: rgb(236, 236, 236);
  border-radius: 50%;
  box-shadow: 0.875em 0.938em, 0 -1.25em, 0.875em -2.125em, 2.125em -2.125em,
    3.063em -1.25em, 3.063em 0, 2.125em 0.938em;
}

.bb8-toggle .bb8__body::before {
  content: "";
  width: 2.625em;
  height: 2.625em;
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0.313em solid var(--accent);
  background:
    radial-gradient(1em circle at center, rgb(236, 236, 236) 50%, transparent 51%),
    radial-gradient(1.25em circle at center, var(--bb8-bg) 50%, transparent 51%),
    linear-gradient(-90deg, transparent 42%, var(--accent) 42% 58%, transparent 58%),
    linear-gradient(var(--bb8-bg) 42%, var(--accent) 42% 58%, var(--bb8-bg) 58%);
}

.bb8-toggle .artificial__hidden {
  position: absolute;
  border-radius: inherit;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bb8-toggle .bb8__shadow {
  width: var(--bb8-diameter);
  height: 20%;
  border-radius: 50%;
  background: #3a271c;
  box-shadow: 0.313em 0 3.125em #3a271c;
  opacity: 0.25;
  position: absolute;
  bottom: 0;
  left: calc(var(--toggle-offset) - 0.938em);
  transition: var(--transition);
  transform: skew(-70deg);
  z-index: 1;
}

.bb8-toggle .bb8-toggle__scenery {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  position: relative;
  border-radius: inherit;
}

.bb8-toggle .bb8-toggle__scenery::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: #b18d71;
  z-index: 1;
}

.bb8-toggle .bb8-toggle__cloud {
  z-index: 1;
  position: absolute;
  border-radius: 50%;
}

.bb8-toggle .bb8-toggle__cloud:nth-last-child(1) {
  width: 0.875em;
  height: 0.625em;
  filter: blur(0.125em) drop-shadow(0.313em 0.313em #ffffffae)
    drop-shadow(-0.625em 0 #fff) drop-shadow(-0.938em -0.125em #fff);
  right: 1.875em;
  top: 2.813em;
  background: #ffffffae;
  transition: var(--transition);
}

.bb8-toggle .bb8-toggle__cloud:nth-last-child(2) {
  top: 0.625em;
  right: 4.375em;
  width: 0.875em;
  height: 0.375em;
  background: #dfdedeae;
  filter: blur(0.125em) drop-shadow(-0.313em -0.188em #e0dfdfae)
    drop-shadow(-0.625em -0.188em #bbbbbbae) drop-shadow(-1em 0.063em #cfcfcfae);
  transition: 0.6s;
}

.bb8-toggle .bb8-toggle__cloud:nth-last-child(3) {
  top: 1.25em;
  right: 0.938em;
  width: 0.875em;
  height: 0.375em;
  background: #ffffffae;
  filter: blur(0.125em) drop-shadow(0.438em 0.188em #ffffffae)
    drop-shadow(-0.625em 0.313em #ffffffae);
  transition: 0.8s;
}

.bb8-toggle .gomrassen,
.bb8-toggle .hermes,
.bb8-toggle .chenini {
  position: absolute;
  border-radius: var(--radius);
  background: linear-gradient(#fff, #6e8ea2);
  top: 100%;
}

.bb8-toggle .gomrassen {
  left: 0.938em;
  width: 1.875em;
  height: 1.875em;
  box-shadow: 0 0 0.188em #ffffff52, 0 0 0.188em #6e8ea24b;
  transition: var(--transition);
}

.bb8-toggle .gomrassen::before,
.bb8-toggle .gomrassen::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  box-shadow: inset 0 0 0.063em rgb(140, 162, 169);
  background: rgb(184, 196, 200);
}

.bb8-toggle .gomrassen::before {
  left: 0.313em;
  top: 0.313em;
  width: 0.438em;
  height: 0.438em;
}

.bb8-toggle .gomrassen::after {
  width: 0.25em;
  height: 0.25em;
  left: 1.25em;
  top: 0.75em;
}

.bb8-toggle .hermes {
  left: 3.438em;
  width: 0.625em;
  height: 0.625em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: 0.6s;
}

.bb8-toggle .chenini {
  left: 4.375em;
  width: 0.5em;
  height: 0.5em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: 0.8s;
}

.bb8-toggle .tatto-1,
.bb8-toggle .tatto-2 {
  position: absolute;
  width: 1.25em;
  height: 1.25em;
  border-radius: var(--radius);
}

.bb8-toggle .tatto-1 {
  background: #fefefe;
  right: 3.125em;
  top: 0.625em;
  box-shadow: 0 0 0.438em #fdf4e1;
  transition: var(--transition);
}

.bb8-toggle .tatto-2 {
  background: linear-gradient(#e6ac5c, #d75449);
  right: 1.25em;
  top: 2.188em;
  box-shadow: 0 0 0.438em #e6ad5c3d, 0 0 0.438em #d755494f;
  transition: 0.7s;
}

.bb8-toggle .bb8-toggle__star {
  position: absolute;
  width: 0.063em;
  height: 0.063em;
  background: #fff;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 0.063em #fff);
  color: #fff;
  top: 100%;
}

.bb8-toggle .bb8-toggle__star:nth-child(1) {
  left: 3.75em;
  box-shadow: 1.25em 0.938em, -1.25em 2.5em, 0 1.25em, 1.875em 0.625em, -3.125em 1.875em, 1.25em 2.813em;
  transition: 0.2s;
}

.bb8-toggle .bb8-toggle__star:nth-child(2) {
  left: 4.688em;
  box-shadow: 0.625em 0, 0 0.625em, -0.625em -0.625em, 0.625em 0.938em, -3.125em 1.25em, 1.25em -1.563em;
  transition: 0.3s;
}

.bb8-toggle .bb8-toggle__star:nth-child(3) {
  left: 5.313em;
  box-shadow: -0.625em -0.625em, -2.188em 1.25em, -2.188em 0, -3.75em -0.625em,
    -3.125em -0.625em, -2.5em -0.313em, 0.75em -0.625em;
  transition: var(--transition);
}

.bb8-toggle .bb8-toggle__star:nth-child(4) { left: 1.875em; width: 0.125em; height: 0.125em; transition: 0.5s; }
.bb8-toggle .bb8-toggle__star:nth-child(5) { left: 5em; width: 0.125em; height: 0.125em; transition: 0.6s; }
.bb8-toggle .bb8-toggle__star:nth-child(6) { left: 2.5em; width: 0.125em; height: 0.125em; transition: 0.7s; }
.bb8-toggle .bb8-toggle__star:nth-child(7) { left: 3.438em; width: 0.125em; height: 0.125em; transition: 0.8s; }

/* actions */

.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(1) { top: 0.625em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(2) { top: 1.875em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(3) { top: 1.25em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(4) { top: 3.438em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(5) { top: 3.438em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(6) { top: 0.313em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(7) { top: 1.875em; }

.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__cloud { right: -100%; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .gomrassen { top: 0.938em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .hermes { top: 2.5em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .chenini { top: 2.75em; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container { background-position-y: 0; }
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .tatto-1,
.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .tatto-2 { top: 100%; }

.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8 {
  left: calc(100% - var(--bb8-diameter) - var(--toggle-offset));
}

.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8__shadow {
  left: calc(100% - var(--bb8-diameter) - var(--toggle-offset) + 0.938em);
  transform: skew(70deg);
}

.bb8-toggle .bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8__body {
  transform: rotate(225deg);
}

.bb8-toggle .bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__head::before { left: 100%; }
.bb8-toggle .bb8-toggle__checkbox:not(:checked):hover + .bb8-toggle__container .bb8__antenna:nth-child(1) { right: 1.5em; }
.bb8-toggle .bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__antenna:nth-child(2) { left: 0.938em; }
.bb8-toggle .bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__head::after { background-position: 1.375em 0; }
.bb8-toggle .bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__head::before { left: 0; }
.bb8-toggle .bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__antenna:nth-child(2) { left: calc(100% - 0.938em); }
.bb8-toggle .bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__head::after { background-position: -1.375em 0; }

.bb8-toggle .bb8-toggle__checkbox:active + .bb8-toggle__container .bb8__head-container { transform: rotate(25deg); }
.bb8-toggle .bb8-toggle__checkbox:checked:active + .bb8-toggle__container .bb8__head-container { transform: rotate(-25deg); }

.bb8-toggle .bb8:hover .bb8__head::before,
.bb8-toggle .bb8:hover .bb8__antenna:nth-child(2) { left: 50% !important; }
.bb8-toggle .bb8:hover .bb8__antenna:nth-child(1) { right: 0.938em !important; }
.bb8-toggle .bb8:hover .bb8__head::after { background-position: 0 0 !important; }

Earth Loader

designed by Aaditya Jaiswar

EarthLoader.jsx
/*
 * EarthLoader — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './EarthLoader.css';

const lands = [
  'M29.4,-17.4C33.1,1.8,27.6,16.1,11.5,31.6C-4.7,47,-31.5,63.6,-43,56C-54.5,48.4,-50.7,16.6,-41,-10.9C-31.3,-38.4,-15.6,-61.5,-1.4,-61C12.8,-60.5,25.7,-36.5,29.4,-17.4Z',
  'M31.7,-55.8C40.3,-50,45.9,-39.9,49.7,-29.8C53.5,-19.8,55.5,-9.9,53.1,-1.4C50.6,7.1,43.6,14.1,41.8,27.6C40.1,41.1,43.4,61.1,37.3,67C31.2,72.9,15.6,64.8,1.5,62.2C-12.5,59.5,-25,62.3,-31.8,56.7C-38.5,51.1,-39.4,37.2,-49.3,26.3C-59.1,15.5,-78,7.7,-77.6,0.2C-77.2,-7.2,-57.4,-14.5,-49.3,-28.4C-41.2,-42.4,-44.7,-63,-38.5,-70.1C-32.2,-77.2,-16.1,-70.8,-2.3,-66.9C11.6,-63,23.1,-61.5,31.7,-55.8Z',
  'M30.6,-49.2C42.5,-46.1,57.1,-43.7,67.6,-35.7C78.1,-27.6,84.6,-13.8,80.3,-2.4C76.1,8.9,61.2,17.8,52.5,29.1C43.8,40.3,41.4,53.9,33.7,64C26,74.1,13,80.6,2.2,76.9C-8.6,73.1,-17.3,59,-30.6,52.1C-43.9,45.3,-61.9,45.7,-74.1,38.2C-86.4,30.7,-92.9,15.4,-88.6,2.5C-84.4,-10.5,-69.4,-20.9,-60.7,-34.6C-52.1,-48.3,-49.8,-65.3,-40.7,-70C-31.6,-74.8,-15.8,-67.4,-3.2,-61.8C9.3,-56.1,18.6,-52.3,30.6,-49.2Z',
  'M39.4,-66C48.6,-62.9,51.9,-47.4,52.9,-34.3C53.8,-21.3,52.4,-10.6,54.4,1.1C56.3,12.9,61.7,25.8,57.5,33.2C53.2,40.5,39.3,42.3,28.2,46C17,49.6,8.5,55.1,1.3,52.8C-5.9,50.5,-11.7,40.5,-23.6,37.2C-35.4,34,-53.3,37.5,-62,32.4C-70.7,27.4,-70.4,13.7,-72.4,-1.1C-74.3,-15.9,-78.6,-31.9,-73.3,-43C-68.1,-54.2,-53.3,-60.5,-39.5,-60.9C-25.7,-61.4,-12.9,-56,1.1,-58C15.1,-59.9,30.2,-69.2,39.4,-66Z',
];

export default function EarthLoader() {
  return (
    <div className="earth-loader" role="status" aria-label="Loading">
      {lands.map(d => (
        <svg key={d} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" aria-hidden="true">
          <path transform="translate(100 100)" d={d} />
        </svg>
      ))}
    </div>
  );
}
EarthLoader.css
/*
 * EarthLoader — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* keyframes are prefixed so generic names (round1, startround) can't clash globally */
.earth-loader {
  --watercolor: #3344c1;
  --landcolor: #7cc133;
  width: 7.5em;
  height: 7.5em;
  background-color: var(--watercolor);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: inset 0 0.5em rgb(255 255 255 / 0.25), inset 0 -0.5em rgb(0 0 0 / 0.25);
  border: solid 0.15em white;
  animation: earth-loader-start 1s;
}

.earth-loader svg {
  position: absolute;
  width: 7em;
  height: auto;
  fill: var(--landcolor);
}

.earth-loader svg:nth-child(1) { bottom: -2em; animation: earth-loader-round1 5s infinite linear 0.75s; }
.earth-loader svg:nth-child(2) { top: -3em; animation: earth-loader-round1 5s infinite linear; }
.earth-loader svg:nth-child(3) { top: -2.5em; animation: earth-loader-round2 5s infinite linear; }
.earth-loader svg:nth-child(4) { bottom: -2.2em; animation: earth-loader-round2 5s infinite linear 0.75s; }

@keyframes earth-loader-start {
  0%, 75% { filter: brightness(500%); box-shadow: none; }
  100% {
    filter: brightness(100%);
    box-shadow: inset 0 0.5em rgb(255 255 255 / 0.25), inset 0 -0.5em rgb(0 0 0 / 0.25);
  }
}

@keyframes earth-loader-round1 {
  0% { left: -2em; opacity: 1; transform: skewX(0deg) rotate(0deg); }
  30% { left: -6em; opacity: 1; transform: skewX(-25deg) rotate(25deg); }
  31% { left: -6em; opacity: 0; transform: skewX(-25deg) rotate(25deg); }
  35% { left: 7em; opacity: 0; transform: skewX(25deg) rotate(-25deg); }
  45% { left: 7em; opacity: 1; transform: skewX(25deg) rotate(-25deg); }
  100% { left: -2em; opacity: 1; transform: skewX(0deg) rotate(0deg); }
}

@keyframes earth-loader-round2 {
  0% { left: 5em; opacity: 1; transform: skewX(0deg) rotate(0deg); }
  75% { left: -7em; opacity: 1; transform: skewX(-25deg) rotate(25deg); }
  76% { left: -7em; opacity: 0; transform: skewX(-25deg) rotate(25deg); }
  77% { left: 8em; opacity: 0; transform: skewX(25deg) rotate(-25deg); }
  80% { left: 8em; opacity: 1; transform: skewX(25deg) rotate(-25deg); }
  100% { left: 5em; opacity: 1; transform: skewX(0deg) rotate(0deg); }
}

Pyramid Loader

designed by Aaditya Jaiswar

PyramidLoader.jsx
/*
 * PyramidLoader — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
import './PyramidLoader.css';

export default function PyramidLoader() {
  return (
    <div className="pyramid-loader" role="status" aria-label="Loading">
      <div className="pyramid-loader__wrapper">
        <span className="pyramid-loader__side pyramid-loader__side1" />
        <span className="pyramid-loader__side pyramid-loader__side2" />
        <span className="pyramid-loader__side pyramid-loader__side3" />
        <span className="pyramid-loader__side pyramid-loader__side4" />
        <span className="pyramid-loader__shadow" />
      </div>
    </div>
  );
}
PyramidLoader.css
/*
 * PyramidLoader — designed by Aaditya Jaiswar
 * LinkedIn  https://www.linkedin.com/in/aadityaaaaa
 * GitHub    https://github.com/aad1tyaaaaa
 * Dribbble  https://dribbble.com/aadityaaaaa-jaiswar
 * Email     aadityaaaaa.jaiswar@gmail.com
 * WhatsApp  https://wa.me/917710024884
 */
/* sunset palette: swap these four to recolor every face */
.pyramid-loader {
  --c1: #ff6b4a;
  --c2: #ffc857;
  --c3: #fff1d6;
  --c4: #e28bed;
  --glow: #ff8a5c;
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg);
}

.pyramid-loader__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: pyramid-loader-spin 4s linear infinite;
}

@keyframes pyramid-loader-spin {
  100% { transform: rotateY(360deg); }
}

.pyramid-loader__side {
  width: 70px;
  height: 70px;
  position: absolute;
  inset: 0;
  margin: auto;
  transform-origin: center top;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.pyramid-loader__side1 { transform: rotateZ(-30deg) rotateY(90deg); background: conic-gradient(var(--c1), var(--c4), var(--c3), var(--c2)); }
.pyramid-loader__side2 { transform: rotateZ(30deg) rotateY(90deg); background: conic-gradient(var(--c2), var(--c3), var(--c4), var(--c1)); }
.pyramid-loader__side3 { transform: rotateX(30deg); background: conic-gradient(var(--c2), var(--c3), var(--c4), var(--c1)); }
.pyramid-loader__side4 { transform: rotateX(-30deg); background: conic-gradient(var(--c1), var(--c4), var(--c3), var(--c2)); }

.pyramid-loader__shadow {
  width: 60px;
  height: 60px;
  background: var(--glow);
  position: absolute;
  inset: 0;
  margin: auto;
  transform: rotateX(90deg) translateZ(-40px);
  filter: blur(12px);
}