AI 분석
커서가 다가오는 거리에 따라 입력창 포커스 링이 서서히 나타나는 AI 검색 프롬프트 박스다.
흰 배경 중앙에 둥근 모서리의 검색 입력 박스 하나와 그 아래 짧은 회색 캡션만 놓인 단일 컴포넌트 구성이다. 연회색 박스 안에 회색 플레이스홀더, 왼쪽 하단의 하늘색 그라데이션 알약형 모드 버튼, 오른쪽 하단의 흰 원형 전송 버튼이 배치되고 넓고 부드러운 그림자가 박스를 띄운다. 커서가 박스에 가까워질수록 하늘색 테두리 글로우가 점점 진해지고, 멀어지면 회색 테두리로 돌아가며, 클릭 후에는 텍스트가 입력되는 흐름이 이어진다. 거리 기반 포커스 예고라는 마이크로 인터랙션을 AI 프롬프트 입력창에 적용하는 방법을 보여 주는 참고 자료로 유용하다.
minimal · light-mode · soft-gradient
claude-opus-5-5 · 2026-12-03 07:09 · 신뢰도 0.80
원본 트윗
With Claude Fable 5 making software creation more accessible, interaction design is becoming an even bigger differentiator. So here is a Design Engineering Tip:
Most interfaces wait for users to act. Better interfaces prepare for what users are about to do.
This pattern is called Input Anticipation. By reacting to intent before an interaction happens, products feel faster, smarter, and easier to use.
JS
const box = document.querySelector(".input")
const ring = document.querySelector(".focus-ring")
addEventListener("pointermove", (e) => {
const r = box.getBoundingClientRect()
const dx = Math.max(r.left - e.clientX, 0, e.clientX - r.right)
const dy = Math.max(r. top - e.clientY, 0, e.clientY - r.bottom)
const distance = Math.hypot(dx, dy)
const intent = Math.max(0, 1 - distance / 180) ** 2
ring. style.opacity = intent
})
Save this for later.
좋아요 477 · 리트윗 12
x.com/gabriell_lab/status/2065039972483182708