l ๐Ÿค– ์ฝ”๋“œ l

๐Ÿ’—์ดˆ๊ฐ„๋‹จ๐Ÿ’— ๋งˆ์šฐ์Šค ์›€์ง์ด๋Š”๋Œ€๋กœ ๋”ฐ๋ผ์˜ค๋Š” ํ•˜ํŠธ ๋งŒ๋“ค๊ธฐ (JS, CSS, HTML)

์ฝ”๋“œ๊ทธ๋ฆผ 2021. 3. 22.
๋ฐ˜์‘ํ˜•

์•ˆ๋…•ํ•˜์„ธ์š”~~

์ฝ”๋“œ๊ทธ๋ฆผ์ž…๋‹ˆ๋‹ค (๏ฝก๏ฝฅ∀๏ฝฅ)๏พ‰๏พž

 

 

์˜ค๋Š˜์€ css๋กœ ํ•˜ํŠธ๋ฅผ ๋งŒ๋“ค์–ด์„œ

๋งˆ์šฐ์Šค๊ฐ€ ์›€์ง์ด๋Š”๋Œ€๋กœ ๋”ฐ๋ผ์˜ค๊ฒŒ ๋งŒ๋“ค์–ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

(๋งˆ์šฐ์Šค ์ปค์„œ๋ฅผ ํ•˜ํŠธ๋กœ ์ปค์Šคํ…€ํ•˜๊ธฐ!!)

 

 

 

์ฝ”๋“œ๋Š” ์•„์ฃผ ๊ฐ„๋‹จํ•ฉ๋‹ˆ๋‹ค!!

์ €๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋งˆ์šฐ์Šค ์ด๋ฒคํŠธ๋ฅผ ์ดํ•ดํ•˜๊ธฐ ์œ„ํ•ด ๋งŒ๋“ค์–ด ๋ดค์–ด์š” (โ´โ—ก`โ)

 

 

 

 

See the Pen Mouse Cursor Event (Easy, Basic)๐Ÿณ๐Ÿน by CodeGream (@joowon0220) on CodePen.

 

 

 

 

 

css๋กœ ํ•˜ํŠธ๋ฅผ ๋งŒ๋“œ๋Š” ์›๋ฆฌ๋Š”

๋งˆ๋ฆ„๋ชจ๋ฅผ ๋จผ์ € ๋งŒ๋“ค๊ณ  

์œ„์— ๋™๊ทธ๋ผ๋ฏธ ๋‘๊ฐœ๋ฅผ ์˜ฌ๋ฆฌ๋Š” ์›๋ฆฌ์ž…๋‹ˆ๋‹ค ๐Ÿ’—

 

ํ•œ๋ฒˆ css์ƒ‰๊น”์„ ๋ฐ”๊ฟ”๊ฐ€๋ฉด์„œ ํ™•์ธํ•ด ๋ณด์…”์šฉ ใ…Žใ…Žใ…Ž

 

 

 

 

codepen.io/joowon0220/pen/VwPZjxR

 

Mouse Cursor Event (Easy, Basic)๐Ÿณ๐Ÿน

This is the very basic mouse event!ใƒพ(•ω•`)o It helps you to figure out how mouse cursor event works! ๐Ÿป Heart shaped mouse cursor will follow your movem...

codepen.io

 

 

 

 

์†Œ์Šค์ฝ”๋“œ๋ฅผ ์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ๋ณด๋Š”๊ฒŒ ํŽธํ•˜์‹ค์ง€ ๋ชฐ๋ผ์„œ

์žˆ๋Š”๋Œ€๋กœ ๋‹ค ์ค€๋น„ํ•ด ๋ดค์Šต๋‹ˆ๋‹ค~~

 

๋ณต๋ถ™ํ•ด์„œ ํ™œ์šฉํ•ด ๋ณด์„ธ์š”~~

 

 

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HeartPoint</title>
  <style>
  * {
     margin: 0;
    }
  .heart {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    background-color: pink;
    rgba(255,181,248, 0.7);
    height: 50px;
    width: 50px;
    transform: rotate(-45deg);
    animation-name: beat;
    animation-duration: 1s;
    animation-iteration-count: infinite;
  }
  .heart:after {
    background-color: pink;
    rgba(255,181,248, 0.7);
    content: "";
    border-radius: 50%;
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0px;
    left: 25px;
  }
  .heart:before {
    background-color: pink;
    rgba(255,181,248, 0.7);
    content: "";
    border-radius: 50%;
    position: absolute;
    width: 50px;
    height: 50px;
    top: -25px;
    left: 0px;
  }

  </style>
</head>
<body>
  <div class="heart"></div>
  <script>
    const circle = document.querySelector(".heart");

    document.addEventListener("mousemove", (e) => {
        const mouseX = e.clientX;
        const mouseY = e.clientY;
        circle.style.left = mouseX + 'px';
        circle.style.top = mouseY + 'px';
    });
</script>
</body>
</html>

 

 

 

 

๊นƒํ—ˆ๋ธŒ ๋ณด๋Ÿฌ ๋†€๋Ÿฌ์˜ค์„ธ์š” ๐Ÿ‘‡ (๋งžํŒ”ํ™˜์˜)

https://github.com/Joowon0220

 

Joowon0220 - Overview

๐™„ ๐™๐™ค๐™ฅ๐™š ๐™ข๐™ฎ ๐™˜๐™ค๐™™๐™š'๐™จ ๐™ฌ๐™–๐™ง๐™ข๐™ฉ๐™ ๐™ฉ๐™ค๐™ช๐™˜๐™๐™š๐™จ ๐™ฎ๐™ค๐™ช :) . Joowon0220 has 14 repositories available. Follow their code on GitHub.

github.com

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€

๐Ÿ’ฒ ์ถ”์ฒœ ๊ธ€