전체 글76 transfrom, keyframes 도형 회전하기(HTML, CSS) DOCTYPE html> Document *{ margin: 0; padding: 0; box-sizing: border-box; } .wi{ justify-content: center; align-items: center; width: 100%; height: 100%; top: 50%; left: 50%; background-color: #6e6438; position: absolute; transform: translate(-50%, -50%); display: flex; } .box{ width: 200px; height: 200px; animation: rotate 2.5s infinite; background: linear-gradient(to right, rgb(90, 92, 231) 50%.. 2020. 7. 18. 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. 이전 1 ··· 6 7 8 9 10 11 12 ··· 19 다음