Skip to content

Latest commit

 

History

History
193 lines (155 loc) · 5.58 KB

File metadata and controls

193 lines (155 loc) · 5.58 KB

Enhanced Design Features - Bio-Line + Formless Inspired

🎨 New Visual Effects Added

1. Animated DNA Background

  • Canvas-based DNA helix that animates continuously
  • Scroll-reactive: DNA scales up and rotates as you scroll down
  • Gradient colors (cyan → blue → purple)
  • Connection bars between DNA strands
  • Glowing node effects

2. Parallax Scroll Effects

  • Hero section content fades and moves up with scroll
  • Problem section has vertical parallax movement
  • Solution section scales dynamically
  • System section includes rotation effects
  • All sections have opacity transitions

3. Custom Cursor Trail

  • Animated particle trail following mouse movement
  • Custom ring cursor with spring physics
  • Particles fade out with scale animation
  • Formless.xyz inspired interaction

4. Floating Elements

  • 8+ floating particles with independent animations
  • Large gradient orbs with blur effects
  • Continuous looping animations
  • Different speeds and directions
  • Creates depth and atmosphere

5. Animated Gradient Orbs

  • 3 large gradient spheres in background
  • Cyan, purple, and blue color variations
  • Independent animation patterns
  • Heavy blur for atmospheric effect
  • Continuous motion loops

6. Glitch Text Effect

  • Title has subtle glitch animation
  • Multiple text layers with offset positions
  • Random timing for natural feel
  • Cyan/blue/purple gradient colors

7. Enhanced Navigation

  • Glass morphism with backdrop blur
  • Animated active section indicator
  • Hover scale effects on all buttons
  • Pulsing cursor on logo
  • Shimmer effect on analyze button
  • Gradient background overlay

8. Hero Section Enhancements

  • Floating DNA emoji with rotation
  • Scale pulse animation
  • Larger title (text-9xl)
  • Parallax grid background
  • Typewriter effect maintained
  • Scroll fade-out effect

🎬 Animation Techniques Used

Scroll-Based Animations

const { scrollYProgress } = useScroll()
const scale = useTransform(scrollYProgress, [0, 1], [1, 3])
const rotate = useTransform(scrollYProgress, [0, 1], [0, 360])
const opacity = useTransform(scrollYProgress, [0, 0.3, 0.7, 1], [0.3, 0.5, 0.3, 0.1])

Canvas DNA Animation

  • Real-time drawing of double helix
  • Sine wave mathematics for spiral effect
  • Gradient strokes and fills
  • Frame-by-frame animation

CSS Keyframe Animations

  • @keyframes glitch-1 - Text glitch effect
  • @keyframes glitch-2 - Secondary glitch layer
  • @keyframes shine - Gradient text shimmer
  • @keyframes fadeInUp - Section reveals

Framer Motion Features

  • motion.div with style transforms
  • useScroll() for scroll tracking
  • useTransform() for value mapping
  • layoutId for smooth section indicators
  • Spring physics for cursor

📦 New Components Created

  1. DNABackground.jsx - Canvas-based DNA helix
  2. CursorTrail.jsx - Mouse trail particles + custom cursor
  3. FloatingElements.jsx - Ambient floating particles

🎯 Key Improvements

Visual Depth

  • Multiple layers of parallax
  • DNA in background (furthest)
  • Gradient orbs (mid-ground)
  • Floating particles (near)
  • Content (foreground)

Performance

  • Canvas rendering for DNA (GPU accelerated)
  • CSS transforms for smooth animations
  • requestAnimationFrame for canvas
  • Proper cleanup on unmount

Interactivity

  • Custom cursor replaces default
  • Mouse trail for engagement
  • Hover effects on all interactive elements
  • Smooth scroll navigation
  • Active section tracking

Accessibility

  • Maintains semantic HTML
  • Keyboard navigation works
  • Screen reader compatible
  • Reduced motion respected (add prefers-reduced-motion)

🚀 How the DNA Scroll Effect Works

// 1. Track scroll position
const { scrollYProgress } = useScroll()

// 2. Map scroll to transformations
const scale = useTransform(scrollYProgress, [0, 1], [1, 3]) // 1x to 3x scale
const rotate = useTransform(scrollYProgress, [0, 1], [0, 360]) // Full rotation
const opacity = useTransform(scrollYProgress, [0, 0.3, 0.7, 1], [0.3, 0.5, 0.3, 0.1])

// 3. Apply to motion.div
<motion.div style={{ scale, rotate, opacity }}>
  <canvas /> // DNA helix
</motion.div>

Result: As you scroll down the page, the DNA helix:

  • ✅ Grows 3x larger
  • ✅ Rotates 360 degrees
  • ✅ Fades in and out
  • ✅ Creates immersive depth effect

🎨 Color Palette

  • Cyan: #06b6d4 - Primary accent
  • Blue: #3b82f6 - Secondary accent
  • Purple: #8b5cf6 - Tertiary accent
  • Black: #0a0a0a - Background
  • Gradients: Smooth transitions between accent colors

📱 Responsive Considerations

  • Grid backgrounds use mask-image for fade
  • Floating elements scale on mobile
  • Navigation collapses (add mobile menu if needed)
  • Text sizes use responsive classes (md:, lg:)
  • Canvas adapts to window size

🔧 Technical Stack

  • Framer Motion: Scroll animations, transforms, spring physics
  • Canvas API: DNA rendering
  • CSS3: Keyframe animations, gradients, blur effects
  • React Hooks: useScroll, useTransform, useEffect, useRef

✨ Inspiration Sources

  1. Bio-Line.onrender.com

    • Dark theme
    • Technical aesthetics
    • Section-based layout
    • Monospace fonts
  2. Formless.xyz

    • Cursor interactions
    • Floating particles
    • Smooth parallax
    • Gradient orbs
    • Glass morphism

🎬 Preview the Effects

  1. Load the page - See DNA helix and floating particles
  2. Move your mouse - Watch the particle trail
  3. Scroll down - DNA grows and rotates, sections parallax
  4. Hover navigation - Scale effects and active indicators
  5. Click analyze - Shimmer animation

Enjoy the immersive, scroll-reactive design! 🚀