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 9237981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:39:13+00:00 2026-06-18T07:39:13+00:00

I want to make complex animation timeline in my svg. For example, I have

  • 0

I want to make complex animation timeline in my svg. For example, I have 3 rectangles, and I want to show them sequentially and than restart animation.
Here it is: http://jsbin.com/opuguh/3/edit
More complex, and my ultimate target is to have quads shown like this

seconds    0        1        2   
quad 1  inline   inline    none  
quad 2   none    inline   inline 
quad 3  inline    none    inline 

so always display 2 quads, each second one of them disappearing for a second. But they should not be dependent on each other. Is there a way to do it?

If I put it in other way:

  • quad1: start at 0s, display for 2s
  • quad2: start at 1s, display for 2s
  • quad3: start at 2s, display for 1s
  • quad3: start at 0s, display for 1s
  • repeat everything when time reaches 4s
  • 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-18T07:39:15+00:00Added an answer on June 18, 2026 at 7:39 am

    I found answer myself. Trick is using keyTimes, Set it to "0;{start};{end};1", where {start} and {end} are time fraction when you want to show or hide element (timeInSeconds/duration). In this way, all of them are independent, kind of like a timeline 🙂

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset=utf-8 />
    <title>Svg animation</title>
    </head>
    <body>
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="100">
      <rect x="10" y="10" width="50" height="50" fill="green">
      <animate
          attributeName="display"
          values="none;inline;none;none"
          keyTimes="0;0;0.4;1"
          dur="3s"
          begin="0s" repeatCount="indefinite" />
      </rect>
      <rect x="50" y="50" width="50" height="50" fill="red"  >
      <animate
          attributeName="display"
          values="none;inline;none;none"
          keyTimes="0;0.3333;0.666;1"
          dur="3s"
          begin="0s" repeatCount="indefinite" />
      </rect>
      <rect x="90" y="10" width="50" height="50" fill="blue" >
      <animate
          attributeName="display"
          values="none;inline;none;none"
          keyTimes="0;0.6666;1;1"
          dur="3s"
          begin="0s" repeatCount="indefinite" />
      </rect>
    </svg>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I make an enumeration of a complex type? For example, I want
Here's the situation: i have a SearchPage where an user can make a complex
I want to make use of complex usercontrols with more than one control element
I have complex form that I want to make more user friendly. It consists
I have complex xpath selector. I want to make it generic, so it could
I want to combine 2 parts of the same array to make a complex
I have style sheet with a class name changebackgroundcolor i want make change in
I have a somewhat complex query with multiple (nested) sub-queries, which I want to
I have a few simple classes, all extending Doctrine_Record. Now I want to make
I have a very precise question: I want to make an android application that

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.