๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ฐ˜์‘ํ˜•

๐ŸฃcodeLab

(16)
[GSAP] gsap ์ •๋ฆฌ ์ •๋ฆฌ์ค‘ ๊ฐ„๋‹จํ•˜๊ฒŒ ๋ณผ ์ˆ˜ ์žˆ์–ด์„œ ์ข‹๋‹ค. http://302chanwoo.com/lab/tween/ https://lily-im.tistory.com/70?category=950585 gsap ํ•œ๊ธ€ ๋ฒˆ์—ญ?? https://agal.tistory.com/m/210 GSAP 3 Cheat Sheet https://greensock.com/cheatsheet/ GSAP ๋ฉ”์†Œ๋“œ ๋ฉ”์„œ๋“œ์†์„ฑ Tween๋ฐ”๋กœ ์‹คํ–‰๋˜์–ด์•ผํ•˜๋Š” ๊ฐ„๋‹จํ•œ ๋ชจ์…˜๋งŒ๋“ค ๋•Œ ์œ ์šฉTimeline๋‹ค์–‘ํ•œ ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•ด ๋ชจ์…˜์„ ์ปจํŠธ๋กค pause(), play(), progress(), reverse(), timeScale() ๋“ฑ๋“ฑ GSAP demo https://greensock.com/st-demos/page/3/?d=19 GSAP | properties ..
column-count์‚ฌ์šฉํ•˜์—ฌ masonry ๋‚˜ํƒ€๋‚ด๊ธฐ ์กฐ๊ฑด! javascript๋ง๊ณ  css๋งŒ ์‚ฌ์šฉํ•˜์—ฌ masonry grid ๋‚˜ํƒ€๋‚ด๊ธฐ. ๋ฐ˜์‘ํ˜•์—๋„ ์ ์šฉํ•  ์ˆ˜ ์žˆ๋Š” masonry๋งŒ๋“ค๊ธฐ. Reference https://w3bits.com/demo/css-masonry/ https://hwanlee.tistory.com/64 https://developer.mozilla.org/ko/docs/Web/CSS/CSS_Columns/Using_multi-column_layouts
๋ชจ๋ฐ”์ผ ๋ธŒ๋ผ์šฐ์ €์—์„œ 100vh ์˜ค๋ฅ˜(์ง์ ‘ํ•ด๋ณด๊ธฐ) ๋ชจ๋ฐ”์ผ ๋ธŒ๋ผ์šฐ์ €์—์„œ 100vh ์˜ค๋ฅ˜ โ›”์˜ค๋ฅ˜ module ํด๋ž˜์Šค์— 100vh ์Šคํƒ€์ผ ์ง€์ • ํ›„, ์›น ๋ธŒ๋ผ์šฐ์ € ๋ชจ๋ฐ”์ผ ์‚ฌ์ด์ฆˆ์—์„œ๋Š” ์ž˜ ๋ณด์˜€์œผ๋‚˜, ๋ชจ๋ฐ”์ผ์—์„œ๋Š” ์•„๋ž˜์˜ ์ด๋ฏธ์ง€์ฒ˜๋Ÿผ 100vh๊ฐ€ ์ ์šฉ๋˜์ง€ ์•Š๊ณ  ํ…์ŠคํŠธ๊ฐ€ ๋ฐ€๋ ค๋‚˜๋Š” ํ™”๋ฉด์ด ๋ณด์˜€๋‹ค. โบ๊ธฐ์ค€๊ณผ ๋ฌธ์ œ์ . ์•„์ดํฐ๊ธฐ์ค€. 14๋ฒ„์ „. ๋ฌด์กฐ๊ฑด 100vh!! ์–ด๋Š ๊ธฐ๊ธฐ๋“  ํ™”๋ฉด ์œ„์•„๋ž˜์™€ ๋งž์ถ˜๋‹ค. ์›น ๋ธŒ๋ผ์šฐ์ €์—์„œ๋Š” 100vh๊ฐ€ ์ ์šฉ๋˜๋‚˜ ๋ชจ๋ฐ”์ผ ํฌ๋กฌ, ํŒŒ์ด์–ดํญ์Šค, ์‚ฌํŒŒ๋ฆฌ๊ฐ€ ์ ์šฉ์ด ์•ˆ๋จ. ๋ชจ๋ฐ”์ผ ๋ธŒ๋ผ์šฐ์ €๋งŒ ์ ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ ์•„๋ž˜ css ์ ์šฉ. @media only screen and (max-device-width: ๋ชจ๋ฐ”์ผ์‚ฌ์ด์ฆˆ) { /* ์•„๋ž˜ ์˜ˆ์ œ๋Š” 640px๋กœ ๊ธฐ์ค€! */ /* ์Šค๋งˆํŠธํฐ๋งŒ ์ผ๋‹จ ํ™•์ธ(tablet์€ ๋ณ„๋„ ํ•„์ˆ˜) */ /* ์›น๋ธŒ๋ผ์šฐ์ €์—์„œ ๊ธฐ๊ธฐํˆด๋ฐ”์ „ํ™˜ํ•  ๊ฒฝ์šฐ์—๋„ ์ด..
3Depth(level) ๋งŒ๋“ค๊ธฐ 1Depth - 2Depth - 3Depth - 3Depth - 3Depth - 2Depth - 3Depth - 3Depth - 2Depth - 2Depth 1Depth - 2Depth - 3Depth - 3Depth - 2Depth - 3Depth - 3Depth - 3Depth 1Depth - 2Depth - 2Depth 1Depth /* reset css */ * { margin: 0; padding: 0; } li { list-style: none; } a, a:active, a:focus { color :#222; text-decoration: none; } /*************** 1Depth ***************/ .lnb { position: relative; width: 20..
swiper slide ์–‘ ์˜† (margin) ์ฃผ๊ธฐ swiper slide ์–‘ ์˜† ๊ณต๋ฐฑ๋งŒ๋“ค๊ธฐ Slide 01 Slide 02 Slide 03 Slide 04 Slide 05 Slide 06 slidesOffsetBefore ์ „์ฒด์ ์ธ ์Šฌ๋ผ์ด๋“œ ์™ผ์ชฝ์— ๊ณต๋ฐฑ์„ ์ค€๋‹ค. slideOffsetAfter ์ „์ฒด์ ์ธ ์Šฌ๋ผ์ด๋“œ ์˜ค๋ฅธ์ชฝ์— ๊ณต๋ฐฑ์„ ์ค€๋‹ค.
SVG ์ฐธ๊ณ  https://ossam5.tistory.com/116 [HTML๊ธฐ์ดˆ๋ฌธ๋ฒ•] 15๊ฐ• SVGํƒœ๊ทธ Stroke์†์„ฑ - ์˜ค์Œค์˜ ๋‹ˆ๊ฐ€์Šคํ„ฐ๋”” 1. SVG ํƒœ๊ทธ๋ž€? - SVGํƒœ๊ทธ๋Š” Scalable Vector Graphics์˜ ์•ฝ์ž๋กœ ๋ฒกํ„ฐ ๊ธฐ๋ฐ˜ ๊ทธ๋ž˜ํ”ฝ์„ XML ํ˜•์‹์œผ๋กœ ์ •์˜ํ•˜๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. - SVGํƒœ๊ทธ๋Š” SVG๊ทธ๋ž˜ํ”ฝ์„ ๋‹ด๊ธฐ ์œ„ํ•œ ์š”์†Œ์ž…๋‹ˆ๋‹ค. - SVGํƒœ๊ทธ ๋‚ด๋ถ€์— ๋‹ด์„ ์ˆ˜ ์žˆ๋Š” ossam5.tistory.com https://velog.io/@gicomong/css100-day-8 svg์— ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋„ฃ๊ธฐ svg์— ๊ทธ๋ ค์ง€๋Š” ํšจ๊ณผ ์ฃผ๊ธฐ velog.io
์Šคํฌ๋กค ์‹œ ์œˆ๋„์šฐ ํ•˜๋‹จ์— ๊ณ ์ •ํ•˜๊ธฐ ์กฐ๊ฑด btn์ด ์—ฌ๋Ÿฌ๊ฐœ ์ผ ๋•Œ btn ํด๋ž˜์Šค๋ฅผ ๊ฐ€์ง„ ์š”์†Œ๊ฐ€ ๋ชจ๋‘ fix. visual์ผ ๋•Œ๋Š” btn์ด ๋ณด์ด์ง€ ์•Š์•„์•ผ ํ•œ๋‹ค. resize์—๋„ ๊ฐ€๋Šฅ. ์ผ๋‹จ ์ฝ”๋“œ! header visual cnt01 cnt02 cnt02 footer /* ๋ชจ๋“  css ๋™์ผ */ * { margin: 0; padding: 0; box-sizing: border-box; } .wrap { position: relative; width: 100%; height: 100%; } header, footer { width: 100%; height: 70px; position: relative; background-color: #eaeaea; } footer { height: 200px; } section { position: relati..
darkmode ๋งŒ๋“ค์–ด๋ณด๊ธฐ const theme = localStorage.getItem('theme'); // console.log(theme); // ํ˜„์žฌ theme๋ฅผ ์•Œ ์ˆ˜ ์žˆ์Œ. // dark || light if(theme) { document.documentElement.SetAttribute('data-theme', theme); } localStorage :: Storage ๊ฐ์ฒด๋Š” ๋‹จ์ˆœํ•œ key-value ์ €์žฅ์†Œ์ด๋ฉฐ, ์ด๋Š” ๊ฐ์ฒด์™€ ๋น„์Šทํ•˜๋‹ค. ์ด ๋ฐ์ดํ„ฐ๋“ค์€ ํŽ˜์ด์ง€ ๋กœ๋”ฉ์—๋„ ์˜จ์ „ํ•˜๊ฒŒ ์œ ์ง€๋œ๋‹ค. (๋‹ค์‹œ ์›นํŽ˜์ด์ง€์— ์ ‘์† ํ•  ๋•Œ ๋งˆ์ง€๋ง‰ ์„ค์ •์„ ๋ถˆ๋Ÿฌ์˜ฌ ์ˆ˜ ์žˆ๋‹ค.) localStorage getItem(key) :: ํ‚ค์— ํ•ด๋‹นํ•˜๋Š” ๊ฐ’์„ ๋ฐ›์•„์˜จ๋‹ค. setItem(key, value) :: ํ‚ค, ๊ฐ’์„ ๋ณด..

๋ฐ˜์‘ํ˜•