Pokemon TCG-inspired holographic effects for Bengal documentation
Inspired by poke-holo.simey.me by @simeydotme
Full 3D tilt with rainbow foil, glare, and sparkle layers. Try tilting your cursor to different corners!
Conic gradient rainbow
Nebula & stars
Radiating rays
Gold frame treatment
Spherical resource indicators with realistic 3D lighting and subtle float animation.
Apply holographic effects directly to Bengal's admonition components with the .holo class.
âšī¸ Holographic Note
This is a note admonition with holographic effects. Move your cursor around to see the rainbow shimmer and glare follow your movement. The effect is most visible at the edges!
đĄ Pro Tip
The holographic effect uses CSS custom properties updated by JavaScript for smooth, performant animations. The effect respects prefers-reduced-motion for accessibility.
â ī¸ Caution
Warning admonitions get an orange-shifted holo effect to maintain semantic meaning while still being visually striking.
đ Critical
Danger/error admonitions shift the holo effect red-ward. Even with the flashy effects, the semantic color coding remains clear.
Add holographic effects to your Bengal documentation:
<!-- Include the CSS and JS -->
<link rel="stylesheet" href="css/experimental/holo-cards-advanced.css">
<script src="js/holo-cards.js"></script>
<!-- Holographic Card -->
<div class="holo-card holo-card--rainbow holo-card--holo-rare">
<div class="holo-card__inner">
<div class="holo-card__shine"></div>
<div class="holo-card__glare"></div>
<div class="holo-card__sparkle"></div>
<div class="holo-card__content">
<!-- Your content here -->
</div>
</div>
</div>
<!-- Holographic Admonition (simpler!) -->
<div class="admonition holo note">
<p class="admonition-title">Title</p>
<p>Content...</p>
</div>
<!-- Energy Orb -->
<div class="energy-orb-3d fire">đĨ</div>
.holo-card--rainbow /* Conic gradient rainbow */
.holo-card--cosmos /* Nebula/space effect */
.holo-card--sunburst /* Radiating rays */
.holo-card--pixel /* Digital/glitch grid */
.holo-card--galaxy /* Enhanced sparkle */
.holo-card--common /* Subtle, no holo */
.holo-card--uncommon /* Light holo */
.holo-card--holo-rare /* Standard holo (default) */
.holo-card--ultra-rare /* Enhanced effects */
.holo-card--secret-rare /* Gold frame + max effects */
.energy-orb-3d.info /* Blue */
.energy-orb-3d.success /* Green */
.energy-orb-3d.warning /* Amber */
.energy-orb-3d.error /* Red */
.energy-orb-3d.fire /* Orange */
.energy-orb-3d.psychic /* Purple */
.energy-orb-3d.electric /* Yellow */