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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:40:57+00:00 2026-05-31T08:40:57+00:00

I have a css transform that happens when a button is clicked shown here

  • 0

I have a css transform that happens when a button is clicked shown here http://jsfiddle.net/xCkX7/5/

I’m not sure if this possible but, would it be possible to make a event listener or perhaps there’s a different method, so when that button is clicked and the transform is complete another class replaces that transform class that just finished and makes a second animation. I want to avoid using keyframe animation because I’m having an issue with that particular method where I want to use the end state of the animation for a transform, but it resets. You can see that issue here http://jsfiddle.net/xCkX7/23/

Basically I’d like the animation to run it’s course (it’s two step), finish, and then be able to click another button to have other transforms happen. Like here http://jsfiddle.net/xCkX7/21/ except the starting transform is only one step.

  • 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-31T08:40:58+00:00Added an answer on May 31, 2026 at 8:40 am

    The transitionend event fires whenever a CSS transition finishes. You can listen for that event from your first transition and then start the second transition when that event fires.

    Keep in mind that there are vendor-specific prefixes on the transitionend event name in some browsers.

    What you could do in this case is the follow sequence:

    1. Button is clicked
    2. Add event listender for transitionend event on the target object
    3. Make change that starts the first transition
    4. When transitionend event fires, remove event listener to you don’t get confused with other transitions ending
    5. Make change that starts the second transition

    You can see a working version of multi-stage transitions here: http://jsfiddle.net/jfriend00/5FnwY/

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

Sidebar

Related Questions

This is driving me nuts. Here is some HTML and CSS that I have
I have a button class that I wrote in CSS. It essentially displays block,
i have CSS code that does not really work on webkit browsers such as
I have some CSS that doesn't behave correctly with IE8. It works fine with
For whatever reason, when I apply a CSS transform to a paragraph that already
I'm a CSS noob. I have an image of an arrow that I'm using
I have two elements on a page that I'd like to animate via CSS
I have this bit of CSS that results in images popping out a bit
I have an external HTML source that I want to scrape and either transform
I am trying to understand the CSS effects that jQTouch implements. http://www.jqtouch.com/ It has

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.