애니메이션 토글 버튼 만들기 See the Pen Untitled by Give J (@Give-J) on CodePen. 1. HTML 2. CSS .toggle-btn .switch { position: relative; display: inline-block; width: 46px; height: 28px; } .toggle-btn .slider { position: absolute; cursor: pointer; inset: 0px; background-color: rgb(241, 244, 246); transition: all 0.4s ease 0s; border-radius: 34px; } .toggle-btn .slider::before { position: absolute; content:..
토글버튼
728x90