1.3 KiB
1.3 KiB
Pro Foil Implementation
Objective
Implement a high-fidelity "Pro" foil effect using generic CSS techniques inspired by community "Holo" styles, creating a sophisticated rainbow and texture mapping.
Changes
- CSS Class
foil-holo:- Added to
src/client/src/styles/main.css. - This class builds a complex multi-layered background image stack:
- Layer 1: Vertical Repeating Rainbow (
0deglinear gradient). - Layer 2: Diagonal Texture (
133degrepeating linear gradient with hard-light/hue stops).
- Layer 1: Vertical Repeating Rainbow (
- Uses
background-blend-mode: screen, hueto mix these layers dynamically. - Uses
mix-blend-mode: color-dodgeto composite onto the card image. - Includes a custom animation
foil-shift(15s linear infinite) that shifts the background position vertically and diagonally, creating an "always active" shimmering effect.
- Added to
- CardPreview Update:
- Updated
FoilOverlayto use the.foil-holoclass. - Retained the Gaussian Circular Glare (
radial-gradient+animate-spin-slow) as a top-layer "spotlight" effect.
- Updated
Result
The foil effect is now significantly more intricate, featuring vertical color bands and diagonal textures that shift over time, mimicking the look of high-end TCG holofoils (like "Secret Rares" or "Full Arts").