Posts
Q&A
์ด๋ฏธ์ง ์ ํ ํ ์์ ํจ๊ณผ
๊ฐ์ฌํฉ๋๋ค!!!
- Likes
- 1
- Comments
- 4
- Viewcount
- 1.3K
Q&A
์ด๋ฏธ์ง ์ ํ ํ ์์ ํจ๊ณผ
๋ต๋ณ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!** ๋จผ์ HTML ์ ๋๋ค. Transition Window (์ฌ์ง) (์ฌ์ง) ** CSS ์ ๋๋ค.@charset "utf-8"; @import url('http://cdn.jsdelivr.net/npm/xeicon@2.3.3/xeicon.min.css'); * { box-sizing: border-box; } body { margin: 0; } .container { width: calc(100% - 40px); height: calc(100vh - 40px); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; } .front, .back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .front { z-index: 1; } .front img, .back img { width: inherit; height: inherit; object-fit: cover; } .open-navi, .close-navi { background-color: #000; color: #fff; position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; text-align: center; line-height: 40px; font-size: 1.5em; cursor: pointer; transition: 0.5s; } .open-navi { left: 0; } .open-navi.active { left: -40px; } .close-navi { right: -40px; } .close-navi.active { right: 0; }** ์คํฌ๋ฆฝํธ ์ ๋๋ค.$('.open-navi').click(function(){ $(this).addClass('active'); $('.close-navi').addClass('active'); $('.front').fadeOut(); $('.back').fadeIn(); }); $('.close-navi').click(function(){ $(this).removeClass('active'); $('.open-navi').removeClass('active'); $('.back').fadeOut(); $('.front').fadeIn(); });** ์์ฑ ํ ์ด๋ฏธ์ง ์ ๋๋ค.(์ฌ์ง)(์ฌ์ง)-> ์ด๋ฏธ์ง ์์ ํ์๋ ๋ถ๋ถ๊ณผ ๊ฐ์ด ์์ ํจ๊ณผ๊ฐ ๋จ์ต๋๋ค!(์ฌ์ง)-> ๊ฐ์ ํ๋ฉด ์ ๋๋ค!์ด ๋ถ๋ถ์ด ํน์ ๋ง์ํ์ ํฌ๋ก์คํ์ด๋ ๋๋ฉด์ ์๊ธฐ๋ ํ์์ผ๊น์??์ฌ์ง๊น์ง ์ฒจ๋ถํ๋๋ผ ๊ธ์ด ๊ธธ์ด์ง ์ ์ฃ์กํฉ๋๋ค!๊ฐ์ฌํฉ๋๋ค!
- Likes
- 1
- Comments
- 4
- Viewcount
- 1.3K




