+ 8

【SVG】 In SVG , splines is used for what purpose.

I have seen in several codes that coders use an attribute key splines and spline. For what purpose is this used.👍???? Plz help me out.😊😊😊😊

3rd Apr 2018, 4:22 AM
OM KASHYAP
OM KASHYAP - avatar
2 odpowiedzi
+ 4
I have never used splines in animations in SVG ( actually I have rarely used SVGs itself 😅) but judging from the articles, it's how u set the control points for your animations by using cubicbezier spline values u use it by setting ur calcMode attribute to spline in the animate tag we have animation functions like , linear, ease in etc , if you wish to have your own animation function then u do it using spline in SVG, I couldn't find any example codes , but you might find some help at , I ll try to write one later, https://www.w3.org/TR/SVG/animate.html
3rd Apr 2018, 7:27 AM
Morpheus
Morpheus - avatar
+ 2
I am not familiar with svg, but maybe these two resources: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/keySplines http://franzheidl.github.io/keysplines/ will help you to understand keysplines.
3rd Apr 2018, 6:55 AM
Vladi Petrov
Vladi Petrov - avatar