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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:13:16+00:00 2026-05-25T06:13:16+00:00

What is a syntactically clean solution to run a chain of individual CSS3 transitions

  • 0

What is a syntactically clean solution to run a chain of individual CSS3 transitions on a single element, one by one? An example:

  • set left to 10px and opacity to 1 through 200ms
  • set left to 30px through 500ms
  • set left to 50px and opacity to 0 through 200ms

Can this be done without JavaScript? If not, how to code it cleanly with JavaScript?

  • 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-05-25T06:13:17+00:00Added an answer on May 25, 2026 at 6:13 am

    I believe you want a CSS3 animation where you define the CSS styles at different points in the animation and the browser does the tweening for you. Here’s one description of it: http://css3.bradshawenterprises.com/animations/.

    You will have to check on browser support for your targeted browsers.

    Here’s a demo that works in Chrome. The animation is pure CSS3, I only use Javascript to initiate and reset the animation:

    http://jsfiddle.net/jfriend00/fhemr/

    The CSS could be modified to make it work in Firefox 5+ also.

    #box {
        height: 100px; 
        width: 100px; 
        background-color: #777;
        position: absolute;
        left: 5px;
        top: 5px;
        opacity: 0;
    }
    
    @-webkit-keyframes demo {
        0% {
            left: 10px;
        }
        22% {
            opacity: 1;
        }
        77% {
            left: 30px;
        }
        100% {
            left: 50px;
            opacity: 0;
        }
    }
    
    .demo {
        -webkit-animation-name: demo;
        -webkit-animation-duration: 900ms;
        -webkit-animation-iteration-count: 1;
        -webkit-animation-timing-function: ease-in-out;
    }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's an efficient or syntactically simple way to get and set the high order
Is there any compiler independent and syntactically elegant way to set a vtable pointer
Which of the following registry scripts is syntactically correct? Will both work? Is one
I realize this is syntactically bad but I figure it somewhat explains what I'm
Just curious if it is syntactically possible to do something like this: static (void)
Most JavaScript code is also syntactically valid ActionScript 3.0 code. However, there are some
I am struggling to find out the syntactically correct way in which to add
Could you please explain why this code is not syntactically correct? private void addEditor(final
I'm a beginner with iPhone dev in Objective C and one thing I find
Syntactically I see that they loop indefinitely until a break statement is reached, but

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.