Animations

Custom SVG SMIL animations on layers and shapes. For layer appear/disappear, see Effects.

Animation Functions

FunctionDescription
animateRotate()Rotation animation
animateMotion()Move along SVG path
animateOpacity()Animate transparency
animateColor()Color animation on shapes/gradients
animateZoom()Zoom in/out

Common Parameters

ParamDescription
durDuration (e.g., '3s')
from / toStart and end values
repeatCountNumber of repeats ('indefinite')
fill'freeze' (hold) or 'remove' (snap back)

Examples

Rotate Logo

$(function() {
  var img = $.image({ href: 'logo.png', width: 200, height: 200 }).addTo('svg');
  img.animateRotate({ from: 0, to: 360, dur: '3s', repeatCount: 'indefinite'});
});

Move Along Path

$(function() {
  var ball = $.circle({ cx: 0, cy: 0, r: 20, fill: 'red'}).addTo('svg');
  ball.animateMotion({
    path: 'M 100,200 C 200,100 400,100 500,200',
    dur: '4s', repeatCount: 'indefinite'});
});

Related Pages

This page is available in English only
هذه الصفحة متوفرة باللغة الإنجليزية فقط
NS
Media La Vista support
Typically replies natively
مرحباً بكم في دعم SpinetiX عبر واتساب

كيف يمكنني مساعدتكم في حلول اللوحات الرقمية، أو البنية التحتية AV/IT، أو منتجات SpinetiX؟
Hello and welcome to SpinetiX Support on WhatsApp.

How can I help you with digital signage solutions, AV/IT infrastructure, or SpinetiX products?