Add Depth and Contrast with Text Shadow Effects
Text shadows add depth, dimension, and contrast to your view counter text—making it readable on any background, from solid colors to busy product images. WhoKnew Views™ offers four shadow sizes, customizable shadow colors, and five animation options to bring your text to life. Whether you need subtle definition or dramatic emphasis, text shadows ensure your social proof is always legible and visually appealing.
✅ Available in: Free & Pro
🎭 Understanding Text Shadows
A text shadow creates a duplicate of your text slightly offset and blurred, appearing behind the original text. This creates the illusion of depth and separation from the background—essential for readability on complex backgrounds.
Anatomy of a Text Shadow
- Horizontal Offset: How far right (or left) the shadow extends
- Vertical Offset: How far down (or up) the shadow extends
- Blur Radius: How soft/diffused the shadow appears
- Shadow Color: The color of the shadow (typically black, white, or brand color)
💡 Design Principle: Text shadows increase contrast by creating separation between text and background. This is especially critical when displaying counters over product photos with varying colors and patterns.
📏 Text Shadow Sizes
WhoKnew Views™ provides four shadow size options, from none to large. Each size has specific CSS values that determine the shadow’s appearance.
None (No Shadow)
- CSS Value:
none - Best For: Clean, minimal designs with solid backgrounds
- Use When: Text color already has strong contrast with background
- Avoid When: Text is over images or complex backgrounds
Small Shadow
- CSS Value:
1px 1px 2px [color] - Offset: 1px horizontal, 1px vertical
- Blur: 2px
- Effect: Subtle definition, barely noticeable but improves readability
- Best For: Professional designs, light backgrounds, subtle emphasis
- Example Use: White text on light gray background with black shadow
Medium Shadow
- CSS Value:
2px 2px 4px [color] - Offset: 2px horizontal, 2px vertical
- Blur: 4px
- Effect: Balanced depth, clearly visible without being dramatic
- Best For: Product images, moderate contrast needs, standard designs
- Example Use: Black text on product photos with white shadow
Large Shadow
- CSS Value:
3px 3px 6px [color] - Offset: 3px horizontal, 3px vertical
- Blur: 6px
- Effect: Bold, dramatic depth—text appears to float above background
- Best For: Busy backgrounds, low contrast situations, hero sections
- Example Use: White text on colorful product images with black shadow
| Shadow Size | Offset | Blur | Visual Impact |
|---|---|---|---|
| None | — | — | Flat, no depth |
| Small | 1px × 1px | 2px | Subtle, refined |
| Medium | 2px × 2px | 4px | Balanced, noticeable |
| Large | 3px × 3px | 6px | Bold, dramatic |
🎨 Text Shadow Color
Shadow color is just as important as shadow size. The right color ensures readability while maintaining your design aesthetic.
How to Set Shadow Color
- Navigate to WhoKnew → WhoKnew Views™ → Styling
- Select a shadow size from “Text Shadow” dropdown (not “None”)
- The “Text Shadow Color” field appears below
- Click the color picker to choose your shadow color
- Adjust opacity for softer shadows
- Watch the live preview update in real-time
- Click “Save Changes”
⚠️ Important: The “Text Shadow Color” field only appears when you select a shadow size other than “None.” If you don’t see it, verify you’ve selected Small, Medium, or Large shadow first.
Shadow Color Strategies
Classic Black Shadow (#000000)
- Best With: Light text colors (white, cream, light gray)
- Use When: Light text on dark or colorful backgrounds
- Effect: Strong definition, traditional depth
- Opacity Tip: Use 50-70% opacity for softer, more natural shadows
Classic White Shadow (#ffffff)
- Best With: Dark text colors (black, navy, dark gray)
- Use When: Dark text on light or product photo backgrounds
- Effect: Halo effect, lifts text from background
- Opacity Tip: Use 60-80% opacity to prevent overpowering the text
Brand Color Shadows
- Best With: Neutral text colors or complementary colors
- Use When: Creating cohesive brand experience
- Effect: Unique, branded depth that reinforces identity
- Example: Purple text with blue shadow for tech brand
Contrasting Color Shadows
- Best With: Bold, eye-catching designs
- Use When: Creating pop-art or vibrant aesthetic
- Effect: High energy, attention-grabbing
- Example: Yellow text with red shadow for sale items
Semi-Transparent Shadows
- Best With: Any text/shadow color combination
- Use When: You want subtle depth without harsh edges
- Effect: Soft, elegant, professional
- Opacity Range: 30-70% for best results
Color Matching Guide
| Text Color | Shadow Color | Background Type | Effect |
|---|---|---|---|
| White (#ffffff) | Black (#000000, 50% opacity) | Product images | Classic, always readable |
| Black (#000000) | White (#ffffff, 70% opacity) | Light backgrounds | Clean, professional |
| Dark Gray (#333333) | White (#ffffff, 60% opacity) | Mixed backgrounds | Subtle, versatile |
| Brand Primary | Brand Accent | Any | Branded, cohesive |
| Red (#ff0000) | Black (#000000, 40% opacity) | Light/White | Urgency, emphasis |
| Gold (#d4af37) | Dark Brown (#3e2723) | Light/Neutral | Luxury, premium |
✨ Text Shadow Animations
WhoKnew Views™ offers five animation options that bring your text shadows to life. Animations can run automatically on page load or trigger on mouseover for interactive effects.
Available Animation Types
Fixed (No Animation)
- Behavior: Shadow remains static, no movement
- Best For: Clean, professional designs; stores preferring subtle effects
- Performance: Zero impact, no animations running
- Use When: You want depth without distraction
Fade (One-Time)
- Behavior: Shadow fades from full opacity to 30% opacity
- Keyframes: 0% (full opacity) → 100% (30% opacity)
- Best For: Subtle entrance effect, drawing initial attention
- Visual Impact: Gentle, elegant, sophisticated
- Use When: You want text to “settle in” after page load
Pulse (Repeating)
- Behavior: Shadow alternates between normal size and larger/brighter size
- Keyframes: 0% (normal) → 50% (expanded) → 100% (normal)
- Loop: Infinite—animation repeats continuously
- Shadow Expansion:
- Small: 1px 1px 2px → 1px 1px 4px
- Medium: 2px 2px 4px → 2px 2px 6px
- Large: 3px 3px 6px → 3px 3px 8px
- Best For: Sale items, featured products, attention-grabbing elements
- Visual Impact: Dynamic, energetic, noticeable
- Use When: You want continuous visual interest
⚠️ Performance Note: “Pulse” is the only repeating animation. Use sparingly on pages with many products, as multiple pulsing animations can impact performance on older devices.
Grow (One-Time)
- Behavior: Shadow starts normal, grows larger/more diffused, returns to normal
- Keyframes: 0% (normal) → 50% (expanded) → 100% (normal)
- Shadow Expansion:
- Small: 1px 1px 2px → 2px 2px 6px → 1px 1px 2px
- Medium: 2px 2px 4px → 3px 3px 8px → 2px 2px 4px
- Large: 3px 3px 6px → 4px 4px 10px → 3px 3px 6px
- Best For: Emphasizing new products, highlighting special items
- Visual Impact: Bold, noticeable, impressive
- Use When: You want a dramatic entrance effect
Pass (One-Time)
- Behavior: Shadow moves from top-left to bottom-right, passing through the text
- Keyframes: 0% (top-left) → 25% (center) → 50% (bottom-right) → 75% (center) → 100% (original)
- Shadow Movement:
- Small: -1px -1px 2px → 1px 1px 2px → back
- Medium: -2px -2px 4px → 2px 2px 4px → back
- Large: -3px -3px 6px → 3px 3px 6px → back
- Best For: Creative designs, modern aesthetics, unique stores
- Visual Impact: Unique, memorable, artistic
- Use When: You want something different from standard effects
🎯 Animation Triggers
Control when your text shadow animation occurs.
None (Automatic on Page Load)
- Behavior: Animation plays immediately when page/counter loads
- Best For: Entrance effects, initial attention-grabbing
- Use With: Fade, Grow, Pass (one-time animations)
- Example: Shadow fades in when customer views product page
On Mouseover (Interactive)
- Behavior: Animation plays only when customer hovers mouse over counter
- Best For: Interactive elements, desktop-focused stores
- Use With: Any animation type
- Mobile Note: Does not trigger on mobile (no hover state)
- Example: Shadow grows when customer hovers over view count
💡 Strategy Tip: Use “None” trigger with one-time animations (Fade, Grow, Pass) for subtle entrance effects. Use “On Mouseover” trigger with Pulse for desktop interactivity that doesn’t overwhelm mobile users.
⏱️ Animation Duration & Delay
Fine-tune the timing of your text shadow animations for perfect synchronization and pacing.
Animation Duration
Set in “Text Shadow Animation Duration (s)”:
- Default: 0.3 seconds
- Range: Any decimal value (e.g., 0.1, 0.5, 2.0)
- Quick (0.1-0.3s): Snappy, energetic, modern
- Standard (0.3-0.5s): Balanced, comfortable, professional
- Slow (0.6-1.0s): Elegant, luxurious, deliberate
- Very Slow (1.0-3.0s): Dramatic, cinematic, artistic
Duration Recommendations by Animation
| Animation | Quick | Standard | Slow |
|---|---|---|---|
| Fade | 0.3s | 0.5s | 1.0s |
| Pulse | 0.5s | 1.0s | 2.0s |
| Grow | 0.4s | 0.6s | 1.0s |
| Pass | 0.6s | 1.0s | 1.5s |
Animation Delay
Set in “Text Shadow Animation Delay(s)”:
- Default: None (animation starts immediately)
- Range: None, 0.25s to 5.0s (in 0.25s increments)
- Purpose: Create staggered effects or allow page elements to load first
- Strategic Use: Prevent all animations from firing simultaneously
Delay Strategy by Use Case
- Single Product Page: 0-0.5s delay (quick entrance)
- Product Grid (Multiple Counters): Varies by position (see below)
- Hero/Featured Products: 0s delay (immediate impact)
- Below-Fold Products: 0s delay (triggers when scrolled into view)
- After Other Animations: 1-2s delay (sequential choreography)
Staggered Grid Animation Example
For product grids with multiple counters, create a cascading effect:
- Product 1: 0s delay
- Product 2: 0.25s delay
- Product 3: 0.5s delay
- Product 4: 0.75s delay
- Result: Wave effect as shadows animate in sequence
💡 Pro Tip: For stores with many products on one page, use longer delays (1-2s) or “On Mouseover” trigger to reduce visual overload. Customers should focus on products first, animations second.
🎬 Using the Live Preview
Test all text shadow settings in real-time before publishing:
- Select Shadow Size: Choose None, Small, Medium, or Large
- Pick Shadow Color: Use the color picker (appears when size is selected)
- Choose Animation: Select Fixed, Fade, Pulse, Grow, or Pass
- Set Trigger: Choose None (auto) or On Mouseover
- Adjust Duration: Experiment with animation speed
- Add Delay: Test entrance timing (if using None trigger)
- Switch Preview Mode:
- Desktop Landscape: See desktop appearance and animations
- Mobile Portrait: See mobile appearance (note: mouseover doesn’t work)
- Hover to Test: If using “On Mouseover” trigger, hover over preview counter
- Reload Preview: Click “Reset Preview” to see entrance animations again
⚠️ Testing Note: One-time animations (Fade, Grow, Pass) play only once on page load. To see them again in the preview, refresh the preview or change a setting to force a re-render.
🎨 Shadow Design Strategies
Minimal Professional
- Size: Small
- Color: Black or White at 40-50% opacity
- Animation: Fixed
- Effect: Subtle definition without distraction
- Best For: B2B stores, corporate sites, professional services
Standard Retail
- Size: Medium
- Color: Black at 60% opacity
- Animation: Fade (0.5s duration, 0s delay)
- Effect: Balanced depth with gentle entrance
- Best For: Most e-commerce stores, product pages
High-Energy Sale
- Size: Large
- Color: Black at 70% opacity
- Animation: Pulse (1.0s duration, infinite)
- Effect: Bold, attention-grabbing, urgent
- Best For: Flash sales, clearance items, limited-time offers
Luxury Boutique
- Size: Medium
- Color: Gold (#d4af37) at 50% opacity
- Animation: Grow (1.0s duration, 0.5s delay)
- Effect: Elegant, premium, sophisticated
- Best For: High-end products, luxury brands, boutique stores
Modern Tech
- Size: Small
- Color: Brand accent color at 60% opacity
- Animation: Pass (0.8s duration, 0.25s delay)
- Effect: Contemporary, unique, branded
- Best For: Tech stores, gadget shops, innovative brands
Interactive Hover
- Size: Medium
- Color: White at 70% opacity
- Animation: Grow (0.4s duration)
- Trigger: On Mouseover
- Effect: Desktop-only interactivity, feels clickable
- Best For: Desktop-heavy audiences, B2B customers
🔄 Per-Product Shadow Customization
Both Free and Pro users can customize text shadows for individual products:
- On the Styling page, use “Apply Settings To” dropdown
- Select your target product
- Adjust all shadow settings (size, color, animation, trigger, duration, delay)
- Click “Apply to This Product”
Strategic Per-Product Shadow Use Cases
- 🔥 Flash Sales: Large shadow, Pulse animation, red shadow color
- ⭐ Featured Products: Medium shadow, Grow animation, brand color shadow
- 🆕 New Arrivals: Medium shadow, Pass animation, fresh/bright shadow color
- 💎 Luxury Items: Small shadow, Fade animation, gold shadow color
- 🎯 Standard Products: Small/Medium shadow, Fixed, black/white shadow
🐛 Common Issues & Solutions
Shadow Color Picker Doesn’t Appear
- Issue: “Text Shadow Color” field is hidden
- Cause: “Text Shadow” is set to “None”
- Solution: Select Small, Medium, or Large shadow size first
Shadow Too Dark / Overpowering
- Issue: Shadow obscures or competes with text
- Solutions:
- Reduce shadow size (Large → Medium or Small)
- Lower shadow color opacity (80% → 40-50%)
- Use lighter shadow color (black → dark gray)
- Reduce blur by using smaller shadow size
Shadow Not Visible
- Issue: Shadow is selected but not showing
- Solutions:
- Check shadow color isn’t same as text color
- Increase shadow opacity (30% → 70%)
- Use larger shadow size (Small → Medium)
- Verify shadow color has sufficient contrast with background
- Clear cache and reload page
Animation Doesn’t Play
- Issue: Animation is selected but nothing happens
- Solutions:
- Verify “Text Shadow” is not set to “None”
- Check “Text Shadow Animation” is not “Fixed”
- If using “On Mouseover” trigger, hover over counter
- For one-time animations, refresh page to see them again
- Check browser console for JavaScript errors
- Ensure duration is reasonable (0.1s minimum)
Animation Too Fast or Too Slow
- Issue: Animation pacing feels off
- Solutions:
- Too Fast: Increase duration (0.3s → 0.6s or 1.0s)
- Too Slow: Decrease duration (2.0s → 0.5s or 0.3s)
- Test different durations in live preview
- Match animation speed to brand personality
Multiple Products Animate Simultaneously
- Issue: All counters animate at once, overwhelming customers
- Solutions:
- Add staggered delays (0s, 0.25s, 0.5s, etc.)
- Switch to “On Mouseover” trigger
- Use “Fixed” animation for most products
- Reserve animations for featured/sale products only
Pulse Animation Causes Performance Issues
- Issue: Page lags or stutters with pulsing shadows
- Solutions:
- Use Pulse sparingly (1-2 products per page max)
- Switch to one-time animations (Fade, Grow, Pass)
- Increase Pulse duration (1.0s → 2.0s) to reduce frequency
- Use “Fixed” animation for product grids
Shadow Looks Different on Mobile
- Issue: Shadow appears larger, darker, or different on mobile devices
- Solutions:
- Test on actual mobile devices, not just browser resize
- Reduce shadow size for mobile (use Custom CSS if needed)
- Lower shadow opacity (70% → 50%) for better mobile appearance
- High-DPI screens render shadows sharper—this is normal
✅ Quick Checklist
Before finalizing your text shadow settings:
- ☑️ Shadow size appropriate for design (Small for subtle, Large for bold)
- ☑️ Shadow color has proper contrast (dark shadows for light text, light shadows for dark text)
- ☑️ Shadow doesn’t overpower or obscure text
- ☑️ Animation type matches brand personality (Fixed for professional, Pulse for energetic)
- ☑️ Animation trigger suits audience (None for entrance, Mouseover for desktop interaction)
- ☑️ Animation duration feels natural (0.3-1.0s for most use cases)
- ☑️ Animation delay prevents simultaneous firing (if multiple counters)
- ☑️ Preview tested in both Desktop and Mobile modes
- ☑️ Per-product shadows applied strategically (if needed)
- ☑️ Front-end tested on actual devices (shadows render differently across screens)
- ☑️ Performance acceptable (especially if using Pulse with many products)