Skip to main content

SVG tunnel with vanilla JavaScript

Playing with some SVG and JavaScript.

Because SVG is loaded into the DOM, it can be targeted with JavaScript. You can set styles on elements in the usual way, such as: = "scale(1.5, 1.5)";

See the Pen SVG Tunnel with vanilla JS by Lee Gunn (@leegunn) on CodePen.

Hello, my name is Lee and I work as a full-stack web developer specialising in Microsoft ASP.NET technologies. I love using Umbraco and also MANAGED, my own application management software.

Contact me at

All skills


Get in touch to talk about your project or just ask me a question.