Member
Account Settings
Share AgencyGenius
Know someone who might benefit from AgencyGenius? We'd love it if you shared our platform with your networking group!

Documentation
Tool
We've listed the code documentation below.
Custom Navigation Widget Overview
The Custom Navigation Widget generates a self-contained, interactive navigation bar with multiple style options and animations. Each navigation instance includes unique IDs to prevent conflicts, smooth scrolling for anchor links, active state detection based on scroll position, and responsive design that adapts to all screen sizes.
HTML Structure
The generated navigation structure consists of:
- A unique wrapper ID like custom-nav-abc123 for isolation
- Container element with class .nav-container for styling
- Unordered list with class .nav-list containing navigation items
- List items with class .nav-item and data-section attributes
- Icon containers with class .nav-icon supporting emojis or SVGs
- Tooltips with class .nav-tooltip for hover labels
Navigation Styles
Seven distinct navigation styles are available, each with unique animations:
- Classic : Icon cards with glass morphism effect and hover scaling
- macOS : Authentic dock with wave magnification on hover
- Orbs : Floating circular buttons with glow effects
- Lines : Minimal geometric line patterns
- Morph : Shape-shifting animated containers
- Wave : Horizontal wave pattern with interactive dots
- Dots : iOS-style page indicators
Positioning System
The navigation supports four position options using CSS transforms:
- bottom : bottom: 20px; left: 50%; transform: translateX(-50%);
- top : top: 20px; left: 50%; transform: translateX(-50%);
- left : left: 20px; top: 50%; transform: translateY(-50%);
- right : right: 20px; top: 50%; transform: translateY(-50%);
JavaScript Functionality
The navigation includes several JavaScript features:
- Smooth scrolling for anchor links using scrollIntoView({ behavior: 'smooth' })
- Active state detection by comparing window.scrollY with section positions
- Debounced scroll event handler with 50ms delay for performance
- Section matching using data-section attributes
- Automatic initialization wrapped in an IIFE to avoid global scope pollution
macOS Dock Wave Effect
The macOS style includes authentic dock magnification:
- Mouse position tracking within .nav-container boundaries
- Distance calculation from cursor to each icon center
- Scale calculation: minScale + (maxScale - minScale) * Math.cos((distance / maxDistance) * Math.PI / 2)
- Dynamic width/height adjustment maintaining icon spacing
- Margin bottom animation for vertical lift effect
- Only activates on screens wider than 768px
Classic Style Implementation
The Classic navigation style features glass morphism effects:
- Background: backdrop-filter: blur(13px) saturate(150%)
- Icon containers with gradient backgrounds and inset shadows
- Hover transform: translateY(-15px) scale(1.3)
- Tooltip animation: translateX(-50%) translateY(-15px)
- Active state with persistent color and scale
- Smooth cubic-bezier transitions for natural movement
Icon System
The navigation supports two icon types with flexible styling:
- Emoji icons wrapped in .nav-icon-emoji spans
- SVG icons with fill="none" and stroke="currentColor"
- Icon size controlled by font-size for emojis or width/height for SVGs
- Color inheritance from parent elements
- Transition effects on hover state changes
Responsive Behavior
The navigation adapts to different screen sizes:
- Mobile breakpoint at @media (max-width: 768px)
- Icon size reduction: 38px on mobile vs 44px on desktop
- SVG icons scale from 24px to 20px
- Emoji font-size adjusts from 20px to 18px
- macOS dock wave effect disabled on mobile for performance
- Touch-friendly tap targets maintained across all sizes
Color Customization
Color values are integrated throughout the generated code:
- Primary color applied to hover states and active indicators
- Background color supports rgba() values for transparency
- Gradient generation for smooth color transitions
- Shadow colors derived from primary color with opacity
- Text colors automatically adjust for contrast
Performance Optimizations
Several techniques ensure smooth performance:
- CSS transforms for hardware-accelerated animations
- Debounced scroll events to reduce calculation frequency
- Will-change property implied through transform usage
- Efficient DOM queries cached at initialization
- Event delegation where applicable
- RequestAnimationFrame not needed due to CSS transitions
Accessibility Features
The navigation maintains accessibility standards:
- Semantic HTML with proper list structure
- Keyboard navigation support through native link elements
- Focus states inherited from browser defaults
- Screen reader-friendly text labels in tooltips
- High contrast mode compatibility
- No reliance on color alone for active states
Integration Benefits
The self-contained approach offers several advantages:
- Zero external dependencies - works with vanilla JavaScript
- No conflicts with existing frameworks or libraries
- Unique IDs prevent multiple instance collisions
- Scoped CSS prevents style bleeding
- Works in any HTML environment including CMSs
- No build process or compilation required
- Copy-paste implementation in seconds
Navigation Style
Each style has unique animations and effects
"Inline" places the nav where you add the code
Navigation Items
Colors & Styling
Use rgba() for transparency
Live Preview
Generated Code
• Mobile responsive design
• Customizable icons and colors
• Multiple navigation styles
• No external dependencies
Choose Icon

How to edit code using AI →
Resource Details:
Custom Navigation Generator creates stunning, interactive navigation bars with seven unique animation styles inspired by modern UI trends. Choose from Classic icon cards with glass morphism, authentic macOS dock with wave magnification, floating orbs with glow effects, minimal line patterns, morphing shapes, wave navigation, or iOS-style dots. Each navigation automatically detects active sections during scrolling, supports smooth anchor transitions, and adapts perfectly to any screen size. Features include customizable icons (emoji or SVG), flexible positioning options, color theming, hover animations, and mobile-optimized interactions. The self-contained implementation requires no external libraries, prevents conflicts with unique IDs, and works instantly in any HTML environment including Duda websites.

NO-ACCESS
Only for Desktop Users
This page is only available on desktop.
Please Log in on a desktop to gain access.