Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

3.9 KB
Raw Blame
<svg width="209" height="210" viewBox="0 0 209 210" fill="none" xmlns="http://www.w3.org/2000/svg">
    <style>
  @keyframes cursorMove {
    0%, 100% {
      transform: translate(0px, 0px);
    }
    15% {
      transform: translate(0px, 0px);
    }
    45% {
      transform: translate(35px, 35px);
    }
    85% {
      transform: translate(35px, 35px);
    }
  }
  
  @keyframes selectionGrow {
    0%, 15%, 100% {
      width: 0;
      height: 0;
      opacity: 0;
    }
    20% {
      width: 8px;
      height: 8px;
      opacity: 0.5;
    }
    45% {
      width: 35px;
      height: 35px;
      opacity: 1;
    }
    85% {
      width: 35px;
      height: 35px;
      opacity: 1;
    }
    95% {
      width: 35px;
      height: 35px;
      opacity: 0;
    }
  }
  
  @keyframes selectionFill {
    0%, 15%, 100% {
      width: 0;
      height: 0;
      opacity: 0;
    }
    20% {
      width: 8px;
      height: 8px;
      opacity: 0.05;
    }
    45% {
      width: 35px;
      height: 35px;
      opacity: 0.15;
    }
    85% {
      width: 35px;
      height: 35px;
      opacity: 0.15;
    }
    95% {
      width: 35px;
      height: 35px;
      opacity: 0;
    }
  }
  
  @keyframes cursorClick {
    0%, 100% {
      transform: scale(1);
    }
    10% {
      transform: scale(0.85);
    }
    15% {
      transform: scale(1);
    }
  }
  
  @keyframes cursorGlow {
    0%, 15%, 95%, 100% {
      filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
    }
    20%, 85% {
      filter: drop-shadow(0 0 4px rgba(74, 158, 255, 0.8));
    }
  }
  
  @keyframes cornerDots {
    0%, 40%, 95%, 100% {
      opacity: 0;
      transform: scale(0);
    }
    48% {
      opacity: 0.7;
      transform: scale(1.2);
    }
    50%, 85% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .cursor-group {
    animation: cursorMove 4s ease-in-out infinite;
  }
  
  .cursor-pointer {
    animation: 
      cursorClick 4s ease-in-out infinite,
      cursorGlow 4s ease-in-out infinite;
    transform-origin: 85px 85px;
  }
  
  .selection-box {
    animation: selectionGrow 4s ease-in-out infinite;
  }
  
  .selection-fill {
    animation: selectionFill 4s ease-in-out infinite;
  }
  
  .corner-dot {
    animation: cornerDots 4s ease-in-out infinite;
    transform-origin: center;
  }
</style>

    <defs>
        <linearGradient id="cursorGrad" x1="0%" y1="0%" x2="100%" y2="100%">
            <stop offset="0%" style="stop-color:#ffffff;stop-opacity:1" />
            <stop offset="100%" style="stop-color:#e0e0e0;stop-opacity:1" />
        </linearGradient>
    </defs>

    <g class="selection-area">
        <rect class="selection-fill" x="85" y="85" width="0" height="0"
            fill="#4A9EFF" opacity="0" />

        <rect class="selection-box" x="85" y="85" width="0" height="0"
            fill="none" stroke="#4A9EFF" stroke-width="2"
            stroke-dasharray="5 3" opacity="0" />

        <circle class="corner-dot" cx="85" cy="85" r="3" fill="#4A9EFF" opacity="0" />
        <circle class="corner-dot" cx="120" cy="85" r="3" fill="#4A9EFF" opacity="0" />
        <circle class="corner-dot" cx="120" cy="120" r="3" fill="#4A9EFF" opacity="0" />
        <circle class="corner-dot" cx="85" cy="120" r="3" fill="#4A9EFF" opacity="0" />
    </g>

    <g class="cursor-group">
        <g class="cursor-pointer">
            <g transform="translate(80.6, 80.6)">
                <path
                    d="m16.574 19.2l-3.938-3.938l-1.203 1.202c-1.23 1.232-1.846 1.847-2.508 1.702s-.963-.963-1.565-2.596l-2.007-5.45C4.152 6.861 3.55 5.232 4.39 4.392s2.47-.24 5.73.962l5.45 2.006c1.633.602 2.45.903 2.596 1.565s-.47 1.277-1.702 2.508l-1.202 1.203l3.938 3.938c.408.408.612.612.706.84c.125.303.125.643 0 .947c-.094.227-.298.431-.706.839s-.612.612-.84.706a1.24 1.24 0 0 1-.947 0c-.227-.094-.43-.298-.839-.706"
                    fill="url(#cursorGrad)"
                    stroke="#333"
                    stroke-width="0.5" />
            </g>
        </g>
    </g>
</svg>