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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:00:34+00:00 2026-05-25T19:00:34+00:00

I have been really puzzled because I was trying to work out some jQuery

  • 0

I have been really puzzled because I was trying to work out some jQuery tutorials in coffeescript for rails 3.1 and it seems like none of the animation functions of jquery work.

For example, this does nothing:

/assets/javascripts/my_controller.js.coffee:

$(document).ready ->
  $('p:first').fadeIn()

However, if I do this:

$(document).ready ->
  alert($('p:first').text())

I do get the correct text. Can anyone tell me what is going on here?

THANK YOU EVERYONE, and thanks Trevor for reading my mind. Thanks Benoit for helping me to properly use the site. My final answer below.

  • 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-25T19:00:35+00:00Added an answer on May 25, 2026 at 7:00 pm

    I dug around a bit and found this: (from http://api.jquery.com/visible-selector/)

    Elements with visibility: hidden or opacity: 0 are considered to be visible, since they still consume space in the layout. During animations that hide an element, the element is considered to be visible until the end of the animation. During animations to show an element, the element is considered to be visible at the start at the animation.

    How :visible is calculated was changed in jQuery 1.3.2. The release notes outline the changes in more detail.

    So, using the correct style, or the toggle functions in jQuery are the right option.

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

Sidebar

Related Questions

I have been trying to figure out a solution but nothing has really presented
I really need some help with this as I have been trying to fix
I have been trying to find a really fast way to parse yyyy-mm-dd [hh:mm:ss]
I have been playing around with the Rhino ETL library and really like the
I have been debating using css with div's and laying out elements, and really
The specs for my rails project have been really slow lately. I did a
I have a question. I have been really trying to learn Python. For a
I am really new at Perl and have been trying to piece together a
I have been building IMO a really cool RIA. But its now close to
I have been maintaining an installation for a while but I am not really

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.