๐Ÿ‘จ‍๐Ÿ’ป๊ฐœ๋ฐœ/๐ŸŒFront-End

[HTML] video ํƒœ๊ทธ / ๋ฐฐ๊ฒฝ video / ๋กœ๊ทธ์ธ ๋ฐฐ๊ฒฝ video / login background video

kimtongting ์ž…๋‹ˆ๋‹ค 2022. 1. 14. 12:55

 

 

 

 

์„œ๋ก 

๋กœ๊ทธ์ธ ์ฐฝ์„ ์ •๋ˆ๋˜๊ฒŒ ๊พธ๋ฏธ๊ณ  ์‹ถ์–ด ๋ฐฐ๊ฒฝ์— VIDEO๋ฅผ ๋„ฃ๊ธฐ๋กœ ํ–ˆ๋‹ค.

์–ด๋‘์šด ์ฑ„์ƒ‰์˜ VIDEO ๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ์ „์ฒด์ ์œผ๋กœ ์•ˆ์ •๋œ ๋ชจ์Šต์„ ๋ณด์—ฌ์ค€๋‹ค.

 

HTML & CSS

*HTML*

<body>
    <video width="100%" height="auto" autoplay loop playsinline muted>
        <source src="/resources/images/production.mp4" type="video/mp4">
        ๋Œ€์ฒด ํ…์ŠคํŠธ ~~ ๋ธ”๋ผ๋ธ”๋ผ
    </video>
    <div class="cont">
            <div class="form sign-in">
        <div align="center">
            <img src="/resources/images/logo.png" alt="logo" class="mb-5 mt-2">
            <h4 class="text-white font-weight-normal">Welcome to <span class="font-weight-bold text-white">OOO System</span></h4>
            <p class="text-muted">OOO์‹œ์Šคํ…œ์— ์˜ค์‹  ๊ฒƒ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค. <br></p>
        </div>
        <div>
            <label>
                <span>์•„์ด๋””</span>
                <input type="text" id="id" class="log_id inputTransParent" placeholder='์•„์ด๋””๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.' />
            </label>
            <label>
                <span>๋น„๋ฐ€๋ฒˆํ˜ธ</span>
                <input type="password" class="log_pw inputTransParent" id="pw" placeholder="๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”." onkeydown="enterCheck('.btn_login')"/>
            </label>
            <button type="button" id="signin-Button" class="submit" onclick="login()">๋กœ๊ทธ์ธ</button>
        </div>
    </div>
    </div>
</body>

*CSS*

 

/*video*/
video {
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}
/*video*/

 

์™„์„ฑ๋œ๋ชจ์Šต

 

 

๋งˆ๋ฌด๋ฆฌ(๊ด€๋ จ ๊ธ€)

-------------๋‚ด์šฉ์ž…๋ ฅ-----------

 

 

 

 

 

๋ฐ˜์‘ํ˜•