Skip to content
Jiseon Kim edited this page Jan 25, 2021 · 10 revisions

Welcome to the Mini-Shopping-Mall wiki! ๐Ÿ›’

์—ฌ๊ธฐ์—๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ƒˆ๋กญ๊ฒŒ ์•Œ๊ฒŒ ๋œ ๊ฒƒ๋“ค์„ ๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค.
This is where I record my new discoveries as working on the project.

CSS properties

logo

  • cursor : pointer;
    ํ•ด๋‹น ์š”์†Œ์— ์ปค์„œ๋ฅผ ๊ฐ–๋‹ค๋Œ€๋ฉด ํฌ์ธํ„ฐ ๋ชจ์–‘์œผ๋กœ ๋ฐ”๋€œ
  • transform : scale(1.1);
    ํ•ด๋‹น ์š”์†Œ์˜ ํฌ๊ธฐ๋ฅผ 1.1๋ฐฐ๋กœ ์ฆ๊ฐ€์‹œํ‚ด
  • transition : tranform 300ms ease;
    ์ข€๋” ๋ถ€๋“œ๋Ÿฝ๊ฒŒ transform ์‹œํ‚ด
    ์ฐธ๊ณ ) transform, transition ์„ธํŠธ๋กœ ์“ฐ๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์Œ

buttons ์˜ˆ์œ ๋ฒ„ํŠผ ๋งŒ๋“ค๊ธฐ

  • background-color: transparent; (default is non-transparent)
  • border: none;
  • outline: none;

Javascript

  • element.insertAdjacentHTML(position, text);
    ํŠน์ • ์œ„์น˜์— ํ…์ŠคํŠธ๋ฅผ ์‚ฝ์ž…ํ•จ innerHTML๋ณด๋‹ค ๋น ๋ฆ„
    ์ž์ฃผ ์“ฐ๋Š” postion์€ beforeend (element ์•ˆ์— ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰ child)
    MDN Element.insertAdjacentHTML()
Clone this wiki locally