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

๐Ÿ’ฌ/ใ…ใ……ใ…Œใ…‹ใ…ใ…… ์ฑŒ๋ฆฐ์ง€

ํŒจ์ŠคํŠธ ์บ ํผ์Šค ์ฑŒ๋ฆฐ์ง€ 13์ผ์ฐจ

๐Ÿฃ

13์ผ์ฐจ

 

Part 1. HTML/CSS/JS๋กœ ๋งŒ๋“œ๋Š” ์Šคํƒ€๋ฒ…์Šค ์›น์‚ฌ์ดํŠธ

Ch 10. ์Šคํƒ€๋ฒ…์Šค ์˜ˆ์ œ

 


 

Ch 10. ์Šคํƒ€๋ฒ…์Šค ์˜ˆ์ œ

 

 

์ฃผ์ œ

 

  • ์š”์†Œ ์Šฌ๋ผ์ด๋“œ
  • ์œ ํŠœ๋ธŒ ์˜์ƒ ๋ฐฐ๊ฒฝ

 

 

์ฃผ์š” ๋‚ด์šฉ

 

์‹ค์Šต ํ™”๋ฉด

 

 

์ƒˆ๋กœ ์•Œ๊ฒŒ ๋œ ๋‚ด์šฉ

 

 ๐Ÿ”— Swiper JS ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ  (์ง€๋‚œ๋ฒˆ ๊ฑฐ ์ด์–ด์„œ)

 

youtube ์˜์ƒ ์‚ฝ์ž…ํ•  ๋•Œ ๋น„์œจ ์„ค์ •ํ•˜๊ธฐ

 

 ๐Ÿ”— Youtube iframe API 

https://developers.google.com/youtube/iframe_api_reference?hl=ko

 

iframe ์‚ฝ์ž…์— ๋Œ€ํ•œ YouTube Player API ์ฐธ์กฐ ๋ฌธ์„œ  |  YouTube IFrame Player API  |  Google Developers

Embed a YouTube player in your application.

developers.google.com

// Youtube IFrame API๋ฅผ ๋น„๋™๊ธฐ๋กœ ๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.
var tag = document.createElement("script");
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName("script")[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

// onYouTubePlayerAPIReady ํ•จ์ˆ˜ ์ด๋ฆ„์€,
// Youtube IFrame Player API์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์ด๋ฆ„์ด๊ธฐ ๋•Œ๋ฌธ์—,
// ๋‹ค๋ฅด๊ฒŒ ์ง€์ •ํ•˜๋ฉด ๋™์ž‘ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค!
// ๊ทธ๋ฆฌ๊ณ  ํ•จ์ˆ˜๋Š” ์ „์—ญ(Global) ๋“ฑ๋กํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค!
function onYouTubePlayerAPIReady() {
  // <div id="player"></div>
  new YT.Player("player", {
    videoId: "An6LvWQuj_8", // ์ตœ์ดˆ ์žฌ์ƒํ•  ์œ ํŠœ๋ธŒ ์˜์ƒ ID
    playerVars: {
      autoplay: true, // ์ž๋™ ์žฌ์ƒ ์œ ๋ฌด
      loop: true, // ๋ฐ˜๋ณต ์žฌ์ƒ ์œ ๋ฌด
      playlist: "An6LvWQuj_8", // ๋ฐ˜๋ณต ์žฌ์ƒํ•  ์œ ํŠœ๋ธŒ ์˜์ƒ ID ๋ชฉ๋ก
    },
    events: {
      // ์˜์ƒ์ด ์ค€๋น„๋˜์—ˆ์„ ๋•Œ,
      onReady: function (event) {
        event.target.mute(); // ์Œ์†Œ๊ฑฐ!
      },
    },
  });
}

 

 

๐Ÿ”— ํ”Œ๋ ˆ์ด์–ด ๋งค๊ฐœ๋ณ€์ˆ˜(playerVars)

 

YouTube ๋‚ด์žฅ ํ”Œ๋ ˆ์ด์–ด ๋ฐ ํ”Œ๋ ˆ์ด์–ด ๋งค๊ฐœ๋ณ€์ˆ˜  |  YouTube IFrame Player API  |  Google Developers

YouTube ๋‚ด์žฅ ํ”Œ๋ ˆ์ด์–ด ๋ฐ ํ”Œ๋ ˆ์ด์–ด ๋งค๊ฐœ๋ณ€์ˆ˜ ๊ฐœ์š” ์ด ๋ฌธ์„œ์—์„œ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— YouTube ํ”Œ๋ ˆ์ด์–ด๋ฅผ ์‚ฝ์ž…ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์„ค๋ช…ํ•˜๊ณ  YouTube ๋‚ด์žฅ ํ”Œ๋ ˆ์ด์–ด์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค. I

developers.google.com

 

 ๐Ÿ”— Gsap Easing 

https://greensock.com/docs/v2/Easing

 

Docs

Documentation for GreenSock Animation Platform (GSAP)

greensock.com

 

 ๐Ÿ”— gsap.to ์‚ฌ์šฉ๋ฒ• 

https://greensock.com/docs/v3/GSAP/gsap.to()

 

Docs

Documentation for GreenSock Animation Platform (GSAP)

greensock.com

repeat: -1, // ๋ช‡ ๋ฒˆ ๋ฐ˜๋ณตํ•˜๋Š”์ง€๋ฅผ ์„ค์ •, `-1`์€ ๋ฌดํ•œ ๋ฐ˜๋ณต.

 


 

๋ณธ ํฌ์ŠคํŒ…์€ ํŒจ์ŠคํŠธ์บ ํผ์Šค ํ™˜๊ธ‰ ์ฑŒ๋ฆฐ์ง€ ์ฐธ์—ฌ๋ฅผ ์œ„ํ•ด ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

 

#ํŒจ์ŠคํŠธ์บ ํผ์Šค

#ํŒจ์บ ์ฑŒ๋ฆฐ์ง€

#์ง์žฅ์ธ์ธ๊ฐ•

#์ง์žฅ์ธ์ž๊ธฐ๊ณ„๋ฐœ

#ํŒจ์ŠคํŠธ์บ ํผ์Šคํ›„๊ธฐ

#ํ•œ_๋ฒˆ์—_๋๋‚ด๋Š”_ํ”„๋ก ํŠธ์—”๋“œ_๊ฐœ๋ฐœ_์ดˆ๊ฒฉ์ฐจ_ํŒจํ‚ค์ง€_Online

 

https://bit.ly/37BpXiC

 

ํŒจ์ŠคํŠธ์บ ํผ์Šค [์ง์žฅ์ธ ์‹ค๋ฌด๊ต์œก]

ํ”„๋กœ๊ทธ๋ž˜๋ฐ, ์˜์ƒํŽธ์ง‘, UX/UI, ๋งˆ์ผ€ํŒ…, ๋ฐ์ดํ„ฐ ๋ถ„์„, ์—‘์…€๊ฐ•์˜, The RED, ๊ตญ๋น„์ง€์›, ๊ธฐ์—…๊ต์œก, ์„œ๋น„์Šค ์ œ๊ณต.

fastcampus.co.kr