SVG <feMerge> Filter

What is <feMerge> Filter?

The <feMerge> SVG element allows filter effects to be applied concurrently instead of sequentially.



HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> svg rect{ stroke: red; fill: green; } </style> </head> <body> <svg width="120" height="120" xmlns=""> <filter id="point" x="-40" y="-20" width="100" height="200"> <feOffset in="SourceGraphic" dx="60" dy="60" /> <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur2" /> <feMerge> <feMergeNode in="blur2" /> <feMergeNode in="SourceGraphic" /> </feMerge> </filter> <rect x="5" y="5" width="100" height="100" filter="url(#point)" /> </svg>  </body> </html>

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author