Pseudo - Hover, Focus, placeholder
The Pseudo Utilities extend Bootstrap with advanced hover, focus, and placeholder controls using custom classes. All utilities follow your al- namespace and fully support opacity variations, transform effects, and component customization.
All classes use the al- prefix and follow utility-first conventions.
Overview
| Utility Type | Class Format | Description |
|---|---|---|
| No Focus | .al-no-focus | Disable outline on focus |
| Placeholder | .al-placeholder-{color} | Placeholder color |
| Placeholder Opacity | .al-placeholder-{color}-{opacity} | Placeholder with rgba opacity |
| Hover Text Color | .al-hover-text-{color} | Text color on hover |
| Hover Outline Color | .al-hover-outline-{color} | Outline color on hover |
| Hover Rotate | .al-hover-rotate-{deg} | Rotate on hover |
| Hover Scale | .al-hover-scale-{level} | Scale on hover |
| Hover Opacity | .al-hover-{type}-{color}-{opacity} | Color with rgba opacity |
| Hover Stop Animation | .al-hover-stop-animation | Stop animation on hover |
| Hover Glass shining Animation | . al-hover-glass-shine | Glass shining on hover |
| Hover Child Show / Hide | (parent) .al-hover-show / (child) .al-hover-show-hide | Show / Hide child on hover |
| Hover BG Color | .al-hover-bg-{color} | Background color on hover |
| Hover Border Color | .al-hover-border-{color} | Border color on hover |
| Hover Animated Border Gradient Color | .al-animate-border-gradient | Animated Border gradient color on hover |
| Hover Animated border | .al-fancy-border | Animated border |
| Hover Animated border double | .al-fancy-border-double | Animated border double |
| Hover Fancy border | .al-hover-fancy-border .al-hover-fancy-border-1 | Fancy border |
| Hover Glow | .al-hover-glow | Glowing on hover |
| Hover Animated Shadow | .al-hover-shadow | Animated shadow on hover |
| Hide Pseudo Before / After | .al-no-before / .al-no-after | Hide ::before, ::after |
Sass Reference
$opacity: (0: 0, 5: 0.05, 10: 0.10, 25: 0.25, 50: 0.50, 75: 0.75, 100: 1);
$fancy-border-size: (10:10, 20:20, 30:30, 40:40, 50:50, 60:60, 70:70, 80:80, 90:90, 100:100);
Class Usage Reference
| Class | Output |
|---|---|
| .al-hover-text-primary | color: var(--bs-primary) |
| .al-hover-bg-danger | background-color: var(--bs-danger) |
| .al-hover-border-success | border-color: var(--bs-success) |
| .al-hover-outline-warning | outline-color: var(--bs-warning) |
| .al-hover-rotate-180 | transform: rotate(180deg) |
| .al-hover-scale-2 | transform: scale(1.25) |
| .al-hover-bg-primary-50 | rgba(var(--bs-primary-rgb), 0.50) |
| .al-no-focus | outline: 0 |
| .al-placeholder-secondary | color: var(--bs-secondary) |
| .al-placeholder-black-25 | rgba(black, 0.25) |
| .al-no-before | ::before{ display:none } |
| .al-no-after | ::after{ display:none } |
Examples
No Focus
Placeholder Color
Placeholder Color with Opacity
Hover Text Color
Hover Outline Color
Outline Color with Opacity
Hover Rotate
Hover Scale
Hover Glass Effect
Hover Child Show / Hide
Hover Background Color
Background Color with Opacity
Hover Border Color
Border Color with Opacity
Animated Border Gradient
Animated Border Gradient Width
Fancy Border
Color
Size
Color
Glow
Shadow
Color
Stop Animation
Developer Notes
-
All hover states controlled with .al-hover-* classes
-
Color system follows Bootstrap variables and your design tokens
-
Supports rgba opacity directly inside class names
-
Pseudo placeholder fully dynamic with opacity levels
-
No-focus utility removes outlines for custom inputs