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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:21:50+00:00 2026-06-02T08:21:50+00:00

I put a transition on an object using Javascript: $(this).css(‘transition’, ‘all 1000ms’); And I

  • 0

I put a transition on an object using Javascript:

$(this).css('transition', 'all 1000ms');

And I listen to the transition end event:

$(this).on('webkitTransitionEnd', function() { alert('Transition did finish.'); });

The event is triggered and everything works as expected. However, when the element starts with left:100px and you try to animate it to left:100px the event is never triggered, which causes a problem. How would I fix this? I can’t really check the value against the new values because

$(this).css('transform', 'scale(0.1)'); //only when object is being displayed will return matrix value

scale(0.5) does not equal matrix(0.5, 0, 0, 0.5, 0, 0 )
  • 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-02T08:21:56+00:00Added an answer on June 2, 2026 at 8:21 am

    webkit-transition doesn’t take place if your properties are equal, so webkitTransitionEnd will not be fired!

    I made a helper to explain here : http://jsfiddle.net/JtLAX/

    So you will have to find a different approach here for callback function.

    You might want to add a setTimeout(function() {}, 1000), whenever the event that triggers the transition starts.

    Or you could try this library, it is very efficient for managing transitions and setting callbacks :

    http://ricostacruz.com/jquery.transit/

    with it you could simply

    $(this).transit({ left: '+=200' }, function() { alert('transition ends' } );
    

    Regarding your main question :

    Is there a way you can check if a css transition will take place?

    IMHO, I think that the only solution is to check the attributes of the style element manually and compare them with the transition, which is very hard.

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

Sidebar

Related Questions

Put value as a field makes sense only if this one represents some object's
Put them all in one separate folder structure or along with classes which implements
Put simply, I want to select all data in two columns from each of
Please take a look at this: protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { int
Am not sure how to put this, and I couldn't find the answer because
I've run into a mysterious problem. I'm using jQuery's animate function and the object
Using Django 1.3 with PostgreSQL 9.0, I have a multi-step object creation function/view, where:
having trouble with inter-thread communication and solved it by using dummy messages all over
I have this piece of LINQ code private static void Original() { using (var
I have 2 questions : i) How can put this code in a transaction

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.