Skip to content

feat(design): envelope opening animation on the receive screen - #17

Merged
Harrycho415 merged 1 commit into
mainfrom
feat/design-envelope-open-animation
Nov 14, 2026
Merged

Harrycho415 merged 1 commit into
mainfrom
feat/design-envelope-open-animation

Conversation

@Harrycho415

Copy link
Copy Markdown
Owner

무엇을

받은 봉투를 처음 열 때(/envelopes/[tokenId]/open → Open Envelope) 깜빡이던 그림을 개봉 애니메이션으로 교체 (약 2.6초)

  1. 희귀도 색 봉인이 흔들리다 떨어짐
  2. 덮개가 뒤로 젖혀짐
  3. 편지가 올라오고 봉투 테두리에 희귀도 빛 (Rare 파랑 / Epic 보라 / Legendary 금색)
  4. 0.5초 뒤 금액·메시지 공개 화면
  • 봉투 색은 public/designs/ 그림과 같은 디자인별 팔레트
  • prefers-reduced-motion이면 바로 열린 상태
  • 스타일은 globals.css의 env-open-*. next.config.ts의 *.css 규칙이 CSS 모듈을 전역 CSS로 바꿔서 .module.css는 클래스가 연결되지 않음 (빌드는 성공하지만 적용 안 됨) — 참고

스크린샷 / 테스트 결과

Chrome + Meteor + 목업: 시점별(0 / 0.35 / 0.9 / 1.5 / 2.6초) 정지 캡처로 확인, 실제 재생 시 공개 화면 전환 확인 (Midnight·Golden)

체크리스트

  • 브랜치 이름 <type>/<area>-<설명>, PR 제목 Conventional Commits
  • 내 소유 파일만 수정했다 → components/envelope(D) + open/page.tsx(C) + globals.css(공유)
  • [interface] 변경 없음
  • state-breaking 해당 없음
  • vault 변경 없음
  • 컨트랙트 변경 없음
  • 프런트: pnpm lint + tsc 통과, pnpm build 통과 (코인 제거 전 버전에서 확인)

🤖 Generated with Claude Code

- EnvelopeOpening: seal shakes off, flap flips open, letter rises, rarity glow
- colors match the generated envelope art per design and rarity
- replaces the pulsing image during "Opening your Envelope…" (open timer = animation + 0.5s)
- styles live in globals.css as env-open-* (next.config's *.css rule turns CSS modules into global CSS)
- respects prefers-reduced-motion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Harrycho415
Harrycho415 merged commit cb9f450 into main Nov 14, 2026
@Harrycho415
Harrycho415 deleted the feat/design-envelope-open-animation branch November 14, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant