2019/09 14

swiper:사용자가 제작한 네비게이션을 클릭하면 이미지 바뀌게하기

나는 mouseenter를 사용했는데 click을 사용해도 좋다. 등기구 등주 경관조명 태양광 실내조명 개인적으로 스크립트 부분이 해석이 되지 않는데 swiper.on('slideChange', function () { var i = swiper.activeIndex; $('.nav ul li').removeClass('on'); // $('.nav ul li').eq(i).addClass('on'); // }); $('.nav ul li').mouseenter(function(){ var idx = $(this).index() // swiper.slideTo(idx,1000,false); // }); 이부분을 해석하는 것을 조금 더 공부해야 겠다.

0926 마지막 수업_클릭하면 애니메이션 실행하기

DOCTYPE html> Document *{box-sizing: border-box;} body{height:100vh; background: url('img/main_bg.jpg'); background-size: cover; overflow: hidden;} .section1{width: 740px; height:325px; position: relative; left: 50%; top:50%; transform: translate(-50%,-50%);} .section1 img{width: 100%; display:none;} .section1 p{position: absolute; background: #000;} p.top{width: 0; height: 1px; left:0; top:0; }..

제이쿼리 애니메이션: callback을 이용해서 움직이는 선 박스 만들기

DOCTYPE html> Document *{box-sizing: border-box;} body{height:100vh;} .section1{width: 740px; position: relative; left: 50%; top:50%; transform: translate(-50%,-50%);} .section1 img{width: 100%; opacity:0;} .section1 p{position: absolute; background: #000;} p.top{width: ; height: 1px; left:0; top:0; } p.right{width: 1px; height: ; right:0; top:0;} p.bottom{width: ; height: 1px; right:0; bottom: ..

클릭하면 다른 이미지와 다른 글씨들이 보이게 하기:호텔농심참고

참고사이트호텔농심https://www.hotelnongshim.com/kr/?ref=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8%3D DOCTYPE html> Document *{box-sizing: border-box;} .wrap{height: 540px;margin: auto; display: flex;} ul.time{width: 220px; height: 100%; font-size: 30px;} ul.time li{cursor:pointer;} ul.time li.on{color:red;} ul.content{width: 630px; height: 100%; position: relative;} ul.content li{position: absolute; display:none;}..

마우스올리면 이미자가 변경되게 하기

쿠팡을 참고하여 제작함. DOCTYPE html> Document *{box-sizing: border-box;} .slidewrap{width: 1920px; margin: auto; position: relative;} .nav{position:absolute; left:50%; margin-left: 300px; top:50%;transform: translateY(-50%); width: 180px; } .nav li{height:60px; box-shadow: 0 0 5px #333; background: #fff; display: flex;} .nav li a{margin: auto; display: block;} .nav li a.on{border: 1px solid blue;} $(func..

반응형