Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ πŸ“ Devlog ] μ΄μœ μ§„ / 2022-10-05 #191

Open
5 of 9 tasks
nuuco opened this issue Oct 5, 2022 · 0 comments
Open
5 of 9 tasks

[ πŸ“ Devlog ] μ΄μœ μ§„ / 2022-10-05 #191

nuuco opened this issue Oct 5, 2022 · 0 comments
Assignees
Labels

Comments

@nuuco
Copy link
Collaborator

nuuco commented Oct 5, 2022

- μ˜€λŠ˜μ€ μ–΄λ–€ μž‘μ—…μ„ μ§„ν–‰ν–ˆλ‚˜μš”?

  • 쀌 인 쀌 아웃 κΈ°λŠ₯ κ΅¬ν˜„ μ™„λ£Œ
  • 쀌 인 μƒνƒœμ—μ„œ λ°©(μœ λ‹›) 이동 κΈ°λŠ₯ κ΅¬ν˜„ μ™„λ£Œ
  • λ°›μ•„μ˜€λŠ” roobits 데이터가 '객체 μ•ˆμ˜ λ°°μ—΄' ν˜•νƒœμ—μ„œ '이쀑 λ°°μ—΄'둜 λ°”λ€œμ— λ”°λ₯Έ μ½”λ“œ μˆ˜μ •
  • 루빗이 μ—†λŠ” 경우(roobits: [] 인 경우) 빈 방을 보여주도둝 μˆ˜μ •

- 였늘 μž‘μ—… λ‚΄μš©μ€‘ μ–΄λ €μ› λ˜ 뢀뢄이 μžˆμ—ˆλ‚˜μš”?

  • 쀌 κΈ°λŠ₯을 transform 으둜 κ΅¬ν˜„ν•˜λŠ” 데 λ§Žμ€ μˆ˜μ‹μ΄ ν•„μš”ν–ˆμŠ΅λ‹ˆλ‹€.
  • μ›ν•˜λŠ” λ°©(μœ λ‹›) μ€‘μ‹¬μœΌλ‘œ ν™•λŒ€κ°€ λ˜μ–΄μ•Ό ν•΄μ„œ ν•΄λ‹Ή μœ λ‹›μ˜ 쀑심점을 계산해 transform-origin 으둜 λ„£μ–΄μ£Όμ–΄μ•Ό ν–ˆμŠ΅λ‹ˆλ‹€.
  • λ˜ν•œ ν•΄λ‹Ή μ€‘μ‹¬μ μœΌλ‘œ μ΄λ™ν•˜κ³ , μœ λ‹› 크기에 따라 μŠ€μΌ€μΌ λΉ„μœ¨μ„ λ‹€λ₯΄κ²Œ μ μš©ν•΄μ•Ό ν–ˆμŠ΅λ‹ˆλ‹€.
  • λ•Œλ¬Έμ— translate() scale() λ§ˆλ‹€ λ‹€λ₯Έ 값이 ν•„μš”ν•΄μ„œ 값을 κ³„μ‚°ν•˜λŠ” 데 였래 κ±Έλ ΈμŠ΅λ‹ˆλ‹€...πŸ˜‚
  • μœ λ‹›μ΄ 1개, 2개일 λ•Œ λ˜ν•œ 각각 λ‹€λ₯Έ 식을 νŒŒμ•…ν•΄ μ μš©ν•΄μ•Ό λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  • μ™„λ²½ν•˜μ§„ μ•Šμ§€λ§Œ λŒ€λž΅μ μΈ μŠ€νƒ€μΌλ“œ μ»΄ν¬λ„ŒνŠΈ css λ³€μˆ˜λŠ” λ‹€μŒκ³Ό 같이 μž‘μ„±ν–ˆμŠ΅λ‹ˆλ‹€.
    /** 쀌 인 쀌 아웃 κ΅¬ν˜„μ„ μœ„ν•œ λ³€μˆ˜ */
      --floor: ${(props) => parseInt(props.idx / 3) || 0};
      --nth: ${(props) => props.idx % 3 || 0};
      --zoom-translate-x: calc(
        50% - (var(--item-width) * var(--nth)) - (var(--item-width) / 2)
      );
      --zoom-translate-y: calc(
        -50% + (var(--item-height) * var(--floor)) + (var(--item-height) / 2)
      );
      --zoom-transform-origin: calc(
          var(--item-width) * var(--nth) + (var(--item-width) / 2)
        )
        calc(100% - (var(--item-height) * var(--floor)) - (var(--item-height) / 2));
      --zoom-scale: calc(100 / (90 / (var(--total-floor) + 0.1)));
    
      /**scale은 number(λ‹¨μœ„ μ—†λŠ” μ •μˆ˜λ‚˜ μ†Œμˆ˜) 만 λ°›κΈ° λ•Œλ¬Έμ— length(px, vh, rem λ“±) μžλ£Œν˜•μ„ λ„£μœΌλ©΄ μž‘λ™μ΄ μ•ˆ λœλ‹€. */
    
      /** 쀌 인 쀌 아웃 - μœ λ‹›μ΄ ν•œ 개인 경우 */
      --one-zoom-translate-x: 0;
      --one-zoom-translate-y: calc(-50% + (var(--one-item-height) / 2));
      --one-zoom-transform-origin: 50% calc(100% - (var(--one-item-height) / 2));
      --one-zoom-scale: calc(100 / (90 / (var(--total-floor) - 0.5)));
    
      /** 쀌 인 쀌 아웃 - μœ λ‹›μ΄ 두 개인 경우 */
      --two-zoom-translate-x: calc(25% - (50% * var(--nth)));
      --two-zoom-translate-y: calc(-50% + (var(--two-item-height) / 2));
      --two-zoom-transform-origin: calc(
          var(--two-item-width) * var(--nth) + (var(--two-item-width) / 2)
        )
        calc(100% - (var(--two-item-height) / 2));
      --two-zoom-scale: calc(100 / (90 / (var(--total-floor) - 0.5)));
  • λ‹€λ§Œ ν˜„μž¬ λ¬Έμ œλŠ” scale 둜 쀌 κΈ°λŠ₯을 κ΅¬ν˜„ν•˜λ‹€λ³΄λ‹ˆ μœ λ‹›μ— ν¬ν•¨λœ κΈ€μž 크기가 컨트둀 ν•˜κΈ° μ–΄λ €μ›Œμ‘ŒμŠ΅λ‹ˆλ‹€. (κΈ€μžκ°€ λ„ˆλ¬΄ 컀짐) ν•΄λ‹Ή 뢀뢄은 μΆ”κ°€ μ²˜λ¦¬κ°€ ν•„μš”ν•©λ‹ˆλ‹€.

- 내일은 μ–΄λ–€ μž‘μ—…μ„ κ³„νšν•˜κ³  μžˆλ‚˜μš”?

  • λ£Έ νŽ˜μ΄μ§€ λ‹‰λ„€μž„, body ν‘œμ‹œ κ΅¬ν˜„ν•˜κΈ° (1μˆœμœ„)
  • λ£Έ νŽ˜μ΄μ§€μ— 날씨별 λ°°κ²½ λ„£κΈ°
  • λ£Έ νŽ˜μ΄μ§€ ν…μŠ€νŠΈ κ΄€λ ¨ μ»΄ν¬λ„ŒνŠΈ μΆ”κ°€ (λ£Έ 제λͺ©, 디데이 ν‘œμ‹œν•˜κΈ°)
  • λͺ¨λ‹¬ λ””μžμΈ 적용 및 μˆ˜μ •
  • 곡유 λ²„νŠΌ κΈ°λŠ₯ μΆ”κ°€
  • 기타 μŠ€νƒ€μΌλ“œ μ»΄ν¬λ„ŒνŠΈ μˆ˜μ • 및 적용
  • λ£Έ μ’…λ£Œ νŽ˜μ΄μ§€
  • 메인 νŽ˜μ΄μ§€ 레퍼런슀 μ°ΎκΈ° - λŒ€μΆ©μ΄λΌλ„ 진행
  • μœ λ‹› λ°© λ°°κ²½ 이미지 μˆ˜μ • (고양이에 맞게 사물 μœ„μΉ˜ λ³€κ²½, μ°½λ¬Έ μΆ”κ°€, μ‹œκ°„ λ‚˜λ©΄ μ†Œν’ˆ μΆ”κ°€)

λ‹¬λ €λ³΄κ² μ”λ‹ˆλ‹€γ…γ…....!!😊

@nuuco nuuco added the Devlog label Oct 5, 2022
@nuuco nuuco self-assigned this Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant