본문 바로가기

Web18

hover, transition를 이용한 버튼 (HTML, CSS) DOCTYPE html> Document *{ margin: 0; padding: 0; box-sizing: border-box; } .container{ display: flex; justify-content: center; align-items: center; height: 100vh; background-color: rgb(54, 52, 42); } .btn{ font-size: 20px; font-weight: bold; letter-spacing: 4px; text-transform: uppercase; padding: 30px 35px; background-color: transparent; color: rgba(68, 177, 26, 0.678); border: 3px solid rgb(25.. 2020. 7. 18.
hover, keyframes를 이용한 버튼(HTML, CSS) DOCTYPE html> Document body{ margin: 0; padding: 0; background: #000; } .container { width: 100%; height : 100vh; display:flex; align-items: center; justify-content: center; } button{ position: relative; cursor: pointer; border: none; width: 500px; height: 200px; border-radius: 60px; background: linear-gradient(90deg, #ff00d9, #ff0000, #fda502, #ff00d9); background-size: 300%; color:#fff; font-s.. 2020. 7. 15.
햄버거 메뉴 토글 기능 만들기(HTML, CSS) DOCTYPE html> Documentbody{ background-color: white;}.container{ position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);}.menu{ width: 149px; height: 149px; background-color: #ee81b7; box-shadow: 0 0 35px rgb(6, 253, 59); cursor: pointer; position: relative; border-radius: 12px;} div{ position: absolute; height: 11px; background-color: white; transition: width 0.5s ease; borde.. 2020. 7. 15.
hover를 이용한 메뉴바 menubar (HTML, CSS) DOCTYPE html> Documentbody{ background-color:black; text-align: center;}nav{ position: absolute; width:100%; top: 50%; left: 50%; transform: translate(-50%, -50%);}.box{ text-decoration: none; color : #FFB6C1; background: transparent; padding: 20px 30px; border-radius: 10px; font-weight: bold; text-transform: uppercase; transition: all 0.1s ease-in-out; border: 2px solid #FFB6C1; margin: 0 10px .. 2020. 7. 15.