soyi05075459
@soyi05075459
Reviews Written
-
Average Rating
-
Posts
Q&A
๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ๋ณด์ด๊ฒ ํ๊ณ ์ถ์๋ฐ์
๋ค~! ๊ฐ์ฌํฉ๋๋ค.
- 0
- 11
- 423
Q&A
๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ๋ณด์ด๊ฒ ํ๊ณ ์ถ์๋ฐ์
๋ต ๊ฐ์ฌํฉ๋๋ค! ์ ํด๊ฒฐ ๋์ด์!!
- 0
- 11
- 423
Q&A
๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ๋ณด์ด๊ฒ ํ๊ณ ์ถ์๋ฐ์
topnav a์ zindex ๋นผ๊ณ topnav ์ zindex๋ฅผ 1000์ผ๋ก ์คฌ๋๋ฐ ์ฒ์์ ํ์ด์ง ์ผฐ์๋๋ง ์๋จ๋ฐ ๋ค๋ก ์ ๊ฐ๊ณ ๋ค๋ฅธ ํ์ด์ง๋ก ๋์ด๊ฐ๋ค๊ฐ ๋์์ค๋ฉด ๋ค์ ์ด๋ฏธ์ง๊ฐ ์๋จ๋ฐ ์๋ก ๊ฐ์ ์๋จ๋ฐ๊ฐ ์๋๋ฆฌ๋๋ฐ ์ด๊ฑด ์ด๋ป๊ฒ ์ ์ดํ๋์... ??
- 0
- 11
- 423
Q&A
๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ๋ณด์ด๊ฒ ํ๊ณ ์ถ์๋ฐ์
@@์ง๋ฌธ์์๋๋ค.@@ ์ง๊ธ ์ฌ๊ธฐ์ ๊ทธ๋ฆผ์ด ์๋จ๋ฐ๊น์ง ์ฌ๋ผ์์ ๋ค๋น๊ฒ์ด์ ๋ฐ๊ฐ ์ ์๋๋ฆฌ๋๊ฒ ๊ฐ์ต๋๋ค >1. ์๋ ์ด๋ฏธ์ง๊ฐ ๋ค๋น๊ฒ์ด์ ๋ฐ๊น์ง ์นจ๋ฒํ๋ฉด ์๋๋ฆฌ๋์? > 2. ๊ทธ๋์ ์ด๋ฏธ์ง๋ค์ ์์์ผ๋ก๋ง ์์ง์ด๊ฒ ํ๊ณ ์ถ์๋ฐ y๊ฐ์ ์ญ์ ํด๋ ์ ์ฉ์ด ์๋ผ์ ใ ใ
- 0
- 11
- 423
Q&A
๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ๋ณด์ด๊ฒ ํ๊ณ ์ถ์๋ฐ์
DOCTYPE html> html> head> title>๋ฐฐํ๊ทธ๋ผ์ด๋์ฐ๊ตฌ์title> meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> meta charset="utf-8" /> meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> meta http-equiv="X-UA-Compatible" content="IE=edge"> style> * { box-sizing: border-box; } /* Style the header */ .header { background-color: #f1f1f1; padding: 20px; text-align: center; } .topnav { overflow: hidden; background-color: #333; z-index: 100; position: relative; } .topnav a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; z-index: 100; } .topnav a:hover { background-color: #ddd; color: black; z-index: 100; } li {display: inline;} /* ์๋จ ๋ฐ ๋ */ body{ position: relative; background-color: black; /* cursor: none; */ overflow: hidden; margin:0; } h1{ color: #fff; } /* .cursor_item{ position: absolute; width: 300px; height: 300px; background-color: red; top:0; left:0; margin: -50px 0 0 -50px; transition: all 500ms cubic-bezier(0.930, 0.005, 0.040, 1.005); } */ /* button:hover{ background: red; color: #fff; font-size: 80px; padding : 80px 150px; } */ .human{ position: absolute; width: 500px; left:calc(50% - 150px) ; /*์ฌ์ง ๊ฐ์ด๋ฐ๋ก*/ z-index: 100; /*์ฌ๋ ์ด๋ฏธ์ง ๋งจ ์์ผ๋ก ๊ฐ๊ณ ์ค๊ธฐ*/ } .bg{ position: absolute; } style> body{cursor: url('cursor.cur'),auto;} --> script> let human; let bg; let h1; let x =0; let y =0; let mx=0; //๋ง์ฐ์ค x let my=0; //๋ง์ฐ์ค y let speed =0.009; //๋ง์ฐ์ค ์ผ๋ง์ ์๋๋ก ๋ฐ๋ผ์ฌ์ง window.onload =function(){ h1 = document.getElementsByTagName("h1")[0]; //๋ง์ฐ์ค ๋ถ๋๋ฝ๊ฒ human = document.getElementsByClassName("human")[0]; bg = document.getElementsByClassName("bg")[0]; window.addEventListener("mousemove",mouseFunc,false); function mouseFunc(e){ x= (e.clientX - window.innerWidth / 2); // ์ฐฝ์ ๋ฐ ํฌ๊ธฐ๋ฅผ ๋ง์ฐ์ค ์์ง์ ํฌ๊ธฐ์์ ๋นผ๊ธฐ y= (e.clientY - window.innerHeight / 2); } loop(); //๋ง์ฐ์ค ๋ถ๋๋ฝ๊ฒ } function loop(){ mx += (x - mx) *speed; my += (y - my) *speed; //console.log(x,mx) // h1.innerHTML ="x:"+x+"mx:"+mx; //x์ mx์ ๊ฐ ์ถ๋ ฅ human.style.transform = "translate("+-(mx/6)+"px,"+ -(my/6)+"px)"; // my ๋์ ์ -my์ฃผ๋ฉด ๋ฐ๋๋ก ์์ง์ // ์ฌ์ง์ ๋ ์กฐ๊ธ ์์ง์ด๊ฒ ํ๊ณ ์ถ์ผ๋ฉด mx,my๊ฐ์ ๋๋ ์ค๋ค -> mx/6,my/์ํ๋ ์ bg.style.transform = "translate("+ (mx/2)+"px,"+ (my/2)+"px)"; window.requestAnimationFrame(loop); } script> head> body> div class="topnav"> a href="https://kimsoi.github.io/webpage_bg5/">Laba> a href="#">Weapona> a href="#">์ถ์ฒ์ถ์ฒa> a href="file:///C:/Users/%EA%B9%80%EC%86%8C2/Desktop/%EB%8D%B0%EC%9E%87%EA%B1%B8%EC%A6%88/%EB%8D%B0%EB%AA%A8%EB%8D%B0%EC%9D%B4/webpage_bg5/webpage_bg5/About5.html">team 5a> div> img src="lolo.png" width ="100" height-= "100" class = "human" alt="๋ฐฐํ๊ทธ๋ผ์ด๋ ๋ก๊ณ "> img src="obj.png" class = "bg" alt="์ฌ๋ง๋ฐฐ๊ฒฝ"> body> html>
- 0
- 11
- 423
Q&A
๋ค๋น๊ฒ์ด์ ๋ฐ๋ฅผ ๋ณด์ด๊ฒ ํ๊ณ ์ถ์๋ฐ์
์ค!! ๊ฐ์ฌํฉ๋๋ค ๋ฐ๋ก ๋์์ด์ ! ๊ทธ๋ฐ๋ฐ ์คํฌ๋กค์ ๋ด๋ ค๋ ๋ค๋น๊ฒ์ด์ ๋ฐ๊ฐ ๊ณ ์ ๋์ด์ ๋ณด์ด๊ฒ ํ๋ ค๋ฉด ์ด๋ป๊ฒํด์ผํ๋์ฅ..??
- 0
- 11
- 423




