Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:48:58+00:00 2026-06-17T21:48:58+00:00

Introduction I know some basic animation techniques for SVG using both Javascript and DOM

  • 0

Introduction

I know some basic animation techniques for SVG using both Javascript and DOM <animate> element. So I have created this SVG, but I can’t figure it out how trigger the animation every x seconds without too much code. I tried begin="4s" but it only wait the first time.

Question:

There is a DOM property like begin or dur, but to define an interval in seconds? Which is the better way to achieve this?

What I have tried:

<animateTransform attributeName="transform" additive="sum" attributeType="XML" 
type="rotate" dur="1s" repeatCount="indefinite" from="0 54.2 43.3" 
to="360 54.2 43.3" begin="3s" fill="freeze"/>

Complete example here: SVG Fiddle

Notes:

  • I already checked SVG Spec
  • Add some Javascript code is an option
  • Using CSS3 is an option too
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:48:59+00:00Added an answer on June 17, 2026 at 9:48 pm
    <g> 
        <rect x="0" y="0" width="30" height="20" fill="#f83"/>      
        <animateTransform id="id1" attributeName="transform" additive="sum" 
         type="scale" calcMode="linear" begin="4;id1.end+4" dur="2" keyTimes="0;1" 
         values="1 1;2 2" fill="freeze" />
    
    </g>
    

    here animation begin is specified with relative to animation end, in this way your animation will always wait for your specified time(here 4 sec) and start playing again …

    try this, all the best

    UPDATE

    if you able to use id.end instead of id.end+some_clock_value then use keyTimes and values attribute correctly, replace your rotation animation with following animateTransform and see if you get the output you want,

    <animateTransform id="id1" attributeName="transform" additive="sum" 
         type="rotate" calcMode="linear" begin="0" dur="4" 
         repeatCount="indefinite"   keyTimes="0;0.75;1" 
         values="0 54.2 43.3 ; 0 54.2 43.3 ; 360 54.2 43.3" fill="freeze" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Introduction We have an OpenID Provider which we created using the DotNetOpenAuth component. Everything
Introduction I have some sort of values that I might want to access several
Introduction We all know these silly arguments objects of JavaScript functions. But why object?
Lately I have come to realize that I should know some of Java for
I'm looking for a good 10 minute introduction to Unobtrusive Javascript using JQuery. I'm
I have seen some books on algorithms such as: Introduction to algorithms Algorithms Design
Introduction: Now I know this question could be very broad and it would be
Introduction : I have prior experience in programming (C, C++, Java), however, this is
Introduction I have been so annoyed by applications that have a startup dialog which
INTRODUCTION I'm using excel downloads as a way of users downloading a score sheet,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.