Back to Marketplace

Run this helper free

Answer 3 questions. Get a result in 2 minutes. Preview free.

Start free →
FREE
Scanned
Grow Business

Known Issues & Solutions - Zariah Construction Project

Fix invisible animated images in React Vite construction projects

Images with WOW.js animation classes become invisible when converting HTML templates to React due to opacity being set to 0 without proper animation triggering.

Images display correctly in React + Vite projects with smooth animations by properly implementing WOW.js integration or alternative animation solutions.

  • Diagnose opacity and animation class conflicts in React
  • Implement WOW.js or Intersection Observer for animations
  • Ensure animations trigger on initial page load
  • Resolve custom animation class CSS initialization issues

👁 1 views · 📦 0 installs

Install in one line

mfkvault install saseklab-zariah-construction

Requires the MFKVault CLI. Prefer MCP?

No reviews yet
🤖 Claude Code Cursor💻 Codex🦞 OpenClaw
FREE

Free to install — no account needed

Copy the command below and paste into your agent.

Instant access • No coding needed • No account needed

What you get in 5 minutes

  • Full skill code ready to install
  • Works with 4 AI agents
  • Lifetime updates included
SecureBe the first
Ready to run

Run this helper

Answer a few questions and let this helper do the work.

Advanced: use with your AI agent

Description

# Known Issues & Solutions - Zariah Construction Project ## WOW.js Animation Classes Causing Invisible Images ### Problem Description When converting HTML templates to React + Vite, images with `wow` animation classes (specifically `img-custom-anim-left`, `img-custom-anim-right`, `img-custom-anim-top`) were not visible on the page. The images appeared in the DOM but had `opacity: 0`, making them invisible to users. ### Root Cause The custom CSS animation classes set `opacity: 0` initially: ```css .img-custom-anim-left { animation: img-anim-left 1.3s forwards cubic-bezier(0.645, 0.045, 0.355, 1) 0.4s; opacity: 0; /* <-- This causes the issue */ } ``` The animations rely on WOW.js to trigger and set the opacity back to 1. However, when elements are already in the viewport on page load (common in SPA routing), WOW.js doesn't trigger the animation, leaving elements with `opacity: 0`. ### Affected Files - `src/components/sections/Faq.jsx` - FAQ image - `src/components/sections/About.jsx` - About section images (2 images) - `src/components/sections/Purposes.jsx` - Purposes image - `src/components/sections/Cta.jsx` - CTA image ### Solution **Remove the problematic animation classes** from image elements: Before: ```jsx <div className="faq-image wow img-custom-anim-left"> <img src={faqImage} alt="FAQ" /> </div> ``` After: ```jsx <div className="faq-image"> <img src={faqImage} alt="FAQ" /> </div> ``` ### Alternative Solutions If you want to keep the animations: 1. **Use different animation classes** that don't set `opacity: 0`: - `wow fadeInUp` (from animate.css) - only animates transform - These work correctly with WOW.js 2. **Manually trigger WOW.js** after component mount: ```jsx useEffect(() => { if (window.WOW) { new window.WOW().init() } }, []) ``` 3. **Use CSS-in-JS or styled-components** to conditionally apply animations ### Additional CSS Fix for FAQ Section The FAQ image also needed a z-index fix to appear above the orange overlay: ```css /* In src/styles/main.css around line 3320 */ .faq-wrapper-new .faq-image { max-width: 570px; position: relative; /* Added */ z-index: 9; /* Added - places image above ::before overlay */ } ``` ### Testing Checklist After fixing animation issues, verify: - [ ] All images are visible (opacity: 1) - [ ] Images appear above background overlays - [ ] Images display on first page load - [ ] Images display after navigation (SPA routing) - [ ] No console errors related to missing assets ### Quick Verification Script Run this in browser console to check image opacity: ```javascript document.querySelectorAll('img').forEach(img => { const opacity = window.getComputedStyle(img).opacity; if (opacity === '0') { console.log('Hidden image:', img.src, img.parentElement); } }); ``` --- ## Other Common Issues ### Image Import Path Errors **Problem**: Images not loading - `Failed to resolve import` errors **Solution**: Use correct relative paths from `src/components/sections/`: ```jsx // CORRECT (2 levels up to src, then into assets) import heroBg from '../../assets/img/home-1/hero/hero-bg.jpg' // WRONG (only 1 level up) import heroBg from '../assets/img/home-1/hero/hero-bg.jpg' ``` ### CSS Source Map Warnings **Problem**: `SourceMap` warnings for CSS files **Solution**: Remove sourceMappingURL comments from CSS files: ```css /* Remove this line: */ /*# sourceMappingURL=bootstrap.min.css.map */ ```

Preview in:

Security Status

Scanned

Passed automated security checks

Time saved
How much time did this skill save you?

Related AI Tools

More Grow Business tools you might like

codex-collab

Free

Use when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions.

Rails Upgrade Analyzer

Free

Analyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.

Asta MCP — Academic Paper Search

Free

Domain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.

Hand Drawn Diagrams

Free

Create hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.

Move Code Quality Checker

Free

Analyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working

Claude Memory Kit

Free

"Persistent memory system for Claude Code. Your agent remembers everything across sessions and projects. Two-layer architecture: hot cache (MEMORY.md) + knowledge wiki. Safety hooks prevent context loss. /close-day captures your day in one command. Z