Files
2nd/10_Wiki/Dev/Topic_CSS/CSS_Buttons_Hover.md
T
Antigravity Agent 1cfd3bbb56 docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고,
Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
2026-07-05 00:10:59 +09:00

4.5 KiB

id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
id title category status verification_status canonical_id aliases duplicate_of source_trust_level confidence_score created_at updated_at review_reason merge_history tags raw_sources applied_in github_commit
css-button-hover-effects CSS Button Hover Effects Frontend draft conceptual
button hover
:hover button
hoverable buttons
button shadow
disabled button
button width
B 0.88 2026-06-23 2026-06-23
css
web
frontend
w3schools
buttons
hover
ui
https://www.w3schools.com/css/css3_buttons_hover.asp

CSS Button Hover Effects

🎯 한 줄 통찰 (One-line insight)

The :hover pseudo-class changes a button's appearance on mouse-over, and combined with transition-duration, box-shadow, opacity, and width it produces hover, shadow, disabled, and full-width button effects. [S1]

🧠 핵심 개념 (Core concepts)

  • :hover pseudo-class — used to change the style of a button when you mouse over it. [S1]
  • transition-duration — added to the base button so the hover change animates smoothly. [S1]
  • box-shadow — adds a shadow to a button (always-on or on hover). [S1]
  • opacity — adds transparency to create a "disabled" look (paired with cursor: not-allowed). [S1]
  • width — defines a specific width for a button. [S1]

🧩 추출된 패턴 (Extracted patterns)

  • Animated hover — set transition-duration on .button and override background-color/color in .button:hover. [S1]
  • Shadow on hover vs always.button1 carries a permanent shadow; .button2:hover shows the shadow only on hover. [S1]
  • Disabled look — combine reduced opacity with cursor: not-allowed. [S1]
  • Sizing — set width in px (250px), percentage of parent (50%), or full width (100%). [S1]

📖 세부 내용 (Details)

Hoverable buttons — the CSS :hover pseudo-class is used to change the style of a button when you mouse over it. [S1]

.button {
  transition-duration: 0.4s;
}

.button:hover {
  background-color: #4CAF50; /* Green */
  color: white;
}

Buttons with shadow — the CSS box-shadow property is used to add a shadow to a button. .button1 has a permanent shadow; .button2 shows a shadow only on hover. [S1]

.button1 {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

.button2:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

Disabled button — the CSS opacity property can be used to add transparency to a button (creates a "disabled" look). [S1]

.disabledbtn {
  opacity: 0.6;
  cursor: not-allowed;
}

Button width — the CSS width property can be used to define a specific width for a button. By default, the size of a button is determined by its text content. [S1]

.button1 {
  width: 250px;
}

.button2 {
  width: 50%;
}

.button3 {
  width: 100%;
}

🛠️ 적용 사례 (Applied in summary)

The page's own examples are the applied cases: an animated :hover color swap, permanent vs hover-only box-shadow, a .disabledbtn style, and fixed/percentage/full-width button widths. No external project/commit applications found in the source.

💻 코드 패턴 (Code patterns)

Animated hover color change (language: CSS):

.button {
  transition-duration: 0.4s;
}

.button:hover {
  background-color: #4CAF50;
  color: white;
}

Show shadow only on hover (language: CSS):

.button2:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

⚖️ 모순 및 업데이트 (Contradictions & updates)

No contradictions found in the source.

검증 상태 및 신뢰도

  • 상태: draft
  • 검증 단계: conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
  • 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
  • 신뢰 점수: 0.88
  • 중복 검사 결과: 신규 생성 (New discovery)

🔗 지식 그래프 (Knowledge Graph)

📚 출처 (Sources)

📝 변경 이력 (Change history)

  • 2026-06-23: Initial draft synthesized from the W3Schools "CSS Button Hover Effects" page (Astra wiki-curation, P-Reinforce v3.1 format).