Ist es möglich, SVG-Pfade mit Velocity.js zu morphen?Ist es möglich, SVG-Pfade mit Velocity.js zu morphen?
VON "M292,129c55.2,0,193,125.8,193,181S365.7,506,310.5,506S136,355.2,136,300S236.8,129,292,129z"
TO "M230,38c55.2,0,348,57.8,348,113S391.2,569,336,569S55,456.2,55,401S174.8,38,230,38z"
var path = document.querySelectorAll('svg path');
Velocity(path[0], {
tween: 1000
}, {
duration: 6000,
easing: 'easeOutBounce',
progress: function (el, c, r, s, t) {
el[0].setAttribute('d', ??????);
}
});
Bitte beachten Sie, dass negative Zahlen als Teil der Zeichenfolge bis Geschwindigkeit 1.4.3 – Rycochet