так наверное понятнее будет:
(function() {
function init() {
var speed = 250,
easing = mina.easeinout;
[].slice.call(document.querySelectorAll("#grid-topic > a")).forEach(function(el) {
var s = Snap(el.querySelector("svg")),
path = s.select("path"),
pathConfig = {
from: path.attr("d"),
to: el.getAttribute("data-path-hover")
};
el.addEventListener("mouseenter", function() {
path.animate({"path": pathConfig.to}, speed, easing);
});
el.addEventListener("mouseleave", function() {
path.animate({"path": pathConfig.from}, speed, easing);
});
});
}
init();
})();