A plus-minus (±) icon that draws itself on hover and turns into minus-plus (∓) when the sign flips to negative, and back when it flips again.
React + HTML
무료
상태
아래에 더 있어요 ↓
기본 제공
제공 내용
라이트 및 다크사용 중인 테마 색상 적용
패키지…
코드 크기…
변경할 때마다 검사
타입 검사TypeScript strict 모드
린트 및 포맷ESLint · Prettier
테스트 및 빌드라이트/다크 스크린샷
보안 감사높음 또는 심각 등급 권고 없음
패키지 공개 기간모든 버전 공개 후 7일 이상
대기 시 CPU대기 시 코어 절반 미만, 30 fps 이하
코드
이 컴포넌트에 이상한 점이 있나요? 피드백 보내기 ›
plus-minus-iconHTML
index.htmlpageThe markup to copy, between the copy-from-here comments, on a demo page.
style.cssstyleThe styles: copy them into your CSS.
script.jsscriptThe behavior: load it after the markup.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.
불러오는 중…
이럴 때 좋아요
The +/- key on a calculator, sign toggles in number inputs and positive/negative filters.
작동 방식
Hover it and the two bars draw in, then the upright. Flip it to negative and the upright slides down from the top bar to the bottom one with a small bounce, turning ± into ∓; flip it back and it slides up again.
사용 방법
페이지에서 style.css 및 script.js 파일을 연결한 다음, index.html의 마크업을 원하는 위치에 붙여 넣으세요.