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

  • Home
  • SEARCH
  • 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 6932017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:39:11+00:00 2026-05-27T11:39:11+00:00

I was using: Data.$notification .delay(1500) .animate({ right: ‘+=’ + (Data.$notification.width() + 45) }, 700)

  • 0

I was using:

Data.$notification
     .delay(1500)
     .animate({
        right: '+=' + (Data.$notification.width() + 45)
      }, 700)
     .delay(2500)
      .animate({
           right: '-=' + (Data.$notification.width() + 45)
      }, 700, function() { 
          $(this).remove(); 
      });

But it’s not smooth enough, so taking peoples advice I want to use translate 3D css.
ATM I can’t get it working, I’ve tried:

Data.$notification
.delay(1500)
.addClass('move-into-view')
.delay(2500)
.removeClass('move-into-view').addClass('move-outof-view')
.delay(1500)
.remove();

Where

.rotate-notification.move-into-view {
    -webkit-transform: translate3d(-175px, 0, 0);
}
.rotate-notification.move-outof-view {
    -webkit-transform: translate3d(175px, 0, 0);
}

Is this actually possible? or am I going about this the wrong way?

  • 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-27T11:39:11+00:00Added an answer on May 27, 2026 at 11:39 am

    .delay() only works with a queue:

    The .delay() method is best for delaying between queued jQuery
    effects. Because it is limited—it doesn’t, for example, offer a way to
    cancel the delay—.delay() is not a replacement for JavaScript’s native
    setTimeout function, which may be more appropriate for certain use
    cases.

    Source: http://api.jquery.com/delay/

    So a suggested route would be:

    setTimeout(function () {
        Data.$notification.addClass('move-into-view');
        setTimeout(function () {
            Data.$notification.removeClass('move-into-view').addClass('move-outof-view');
            setTimeout(function () {
                Data.$notification.remove();
            }, 1500);
        }, 2500);
    }, 1500);
    

    Also you need to set a transition rule in your CSS for an animation:

    .rotate-notification {
    -webkit-transition : -webkit-transform 1.5s ease-in-out;
       -moz-transition : -moz-transform 1.5s ease-in-out;
        -ms-transition : -ms-transform 1.5s ease-in-out;
         -o-transition : -o-transform 1.5s ease-in-out;
            transition : transform 1.5s ease-in-out;
    }
    .rotate-notification.move-into-view {
    -webkit-transform : translate3d(175px, 0, 0);
       -moz-transform : translate(175px, 0);
        -ms-transform : translate(175px, 0);
         -o-transform : translate(175px, 0);
            transform : translate(175px, 0);
    }
    .rotate-notification.move-outof-view {
    -webkit-transform : translate3d(0, 0, 0);
       -moz-transform : translate(0, 0);
        -ms-transform : translate(0, 0);
         -o-transform : translate(0, 0);
            transform : translate(0, 0);
    }
    

    Here is a demo: http://jsfiddle.net/vJHvA/4/

    Note that if you don’t use something like Modernizr to check browser compatibility and adapt accordingly then you can break functionality in browsers other than Mobile Safari (for example the Android Browser which is also a WebKit browser).

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

Sidebar

Related Questions

i am fetching a page using get ajax call. $.get('/notification/viewmessage',{user:username},function(data){ //my code here });
I parse data using JSON in javascript, I find this is very convenient. But
I'm trying to save simple text data in my app using this code from
I am using WCF Data Service's processing pipeline do some message notification set-up prior
I am using SQLBulkCopy to move large amounts of data. I implemented the notification
I'm using a DataGridView to load data from a DataTable. This DataGridView is located
HTML5 draft contains an API called EventSource to stream data (notifications) trough javascript using
I have a very simple WPF application in which I am using data binding
I am reading an article in IEEE Computer magazine about using data mining on
I've connected to database, using data set .xsr now I wan't to extract all

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.