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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:06:07+00:00 2026-06-07T08:06:07+00:00

Here is a example using emberjs router http://jsbin.com/agameq/edit . Now I wanna have some

  • 0

Here is a example using emberjs router http://jsbin.com/agameq/edit.
Now I wanna have some showup animation, like fadeIn or fadeOut, when route changed. what should I do?

  • 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-07T08:06:08+00:00Added an answer on June 7, 2026 at 8:06 am

    Every View in ember has a method named didInsertElement:

    Called when the element of the view has been inserted into the DOM.
    Override this function to do any set up that requires an element in
    the document body.

    All ember views also have a $ which is a reference to jQuery, so you can wrap some element in your view with it and apply any changes to it such as:

    // this will animate only the tag h2, which in your case is the title of the users view
    App.UsersView = Ember.View.extend({
        templateName: 'users',
        didInsertElement: function() {
            this.$('h2').animate({ fontSize: "3em" }, 900 );
        }   
    });
    

    Or you can call it without arguments (like $()) to return the current view wrapped by jQuery.

    To animate a view as you enter in that view/route, do this in your App.UsersView:

    // this will animate the entire view
    App.UsersView = Ember.View.extend({
        templateName: 'users',
        didInsertElement: function() {
            this.$().animate({ fontSize: "3em" }, 900 );
        }   
    });
    

    (Note: my animation is pretty lame, but it’s just to show where to call the methods, do a real animation)

    Here’s a modified version of your JSBin

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

Sidebar

Related Questions

I am using the jQuery spinner tool found here: http://btburnett.com/spinner/example/example.html When I try using
I am developing a application using PHP. Some example code is here. $url =
Using the client and server examples found here: http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedmailslot14.html Compiling them with VS2008, running
I have some elements on the page. Here is example of one element: <div
I'm using the example found here: http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Text_Rendering_01 The issue is that when I specify
I'm looking for something like break for loops. Here's some example code (using Symfony's
I am learning and trying simple example using node.js and mongoskin. here is my
Here is an (artificial) example of using a function that returns an anonymous struct
Example: here is the string: blablabla123:550:404:487blablabla500:488:474:401blablablabla here is what I'm using: string reg =
I'm so close! I'm using the XNA Game State Management example found here and

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.