Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End SVG Anchor Tag PHP Function Animation Transition Madness Reply To: SVG Anchor Tag PHP Function Animation Transition Madness

#169818
bmoneruiux
Participant

Nope. The transition works fine in my CodePen project, and works fine when I type in an absolute URL. But when the URL is fed in via that echo, it appends http:// to the URL and then the fill transition doesn’t work.

The animation of the SVG fill seems to have an issue with http:// on Chrome and Safari.

But if I type in the absolute URL of my site without the http://, something in the PHP code file is targeting that anchor and placing “>… on it before my absolute URL entry, and it’s causing my link to then turn into http://brandonmoner.me/brandonmoner.me.

I wonder if:
jQuery('element').animate({ fill: '#B565A7'}, 350);
Would work…