Medium Text
This example shows the most commonly used size - medium text (100px) with standard particle density. This is ideal for headers, titles, and main text elements that need to be clearly readable while maintaining the beautiful particle effect.
Live Demo
Section titled “Live Demo”Medium Text
Configuration
Section titled “Configuration”initParticleJS('#canvas', {text: 'MEDIUM',fontSize: 100,particleRadius: { 'xs': { base: 1, rand: 1 } // Standard particles (1-2px)},colors: ['#FF6B6B', '#4ECDC4', '#45B7D1']});Key Features
Section titled “Key Features”- Balanced Sizing: 100px font size is readable on most screens
- Standard Particles: 1-2px particles provide good detail without lag
- Optimal Performance: Sweet spot between visual quality and performance
- Versatile: Works well in most design contexts
Best Practices
Section titled “Best Practices”- Font Size Range: 80-120px is the recommended range for medium text
- Particle Density: 1-2px particles provide good detail without lag
- Canvas Dimensions: Keep width under 1500px for good performance
- Color Count: 2-4 colors work well at this size
- Readable: Text remains clearly legible
Use Cases
Section titled “Use Cases”Medium text configurations are perfect for:
- Page headers and titles
- Section headings
- Call-to-action text
- Landing page headlines
- Hero section text
- Main content headings
Performance Considerations
Section titled “Performance Considerations”Medium text offers balanced performance:
- Moderate particle count (1000-2000 particles typically)
- Smooth on most modern devices
- Good for desktop and tablet displays
- May need optimization for older mobile devices
Try It Yourself
Section titled “Try It Yourself”Create your own medium-sized effects in the Interactive Playground.