SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    animate values give error

    I am new to jQuery, and i am making something to work. i got <li><img src=""></li> and below it, is the title of it wrapped in <div>Flowers</div>, what i am trying to do it, when someone mouseover on images in listed item, the title display and when someone rollout, it disappear. following is my code, it gives me error on animation property, here is the code
    All those who wander aren't lost.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,996
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Something like this perhaps?
    Fiddle

  3. #3
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I updated the Fiddle , now have a look. what i want is the class toolTip to slideup when i rollover the image and slidedown and opacity falls to zero as it slides down to hide.
    All those who wander aren't lost.

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,996
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Have a look at using slideUp() and slideDown() instead of show() and hide()

  5. #5
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I know the effects, but i dont know, how to implement. have a look has the fiddle now. btw what does next() do?
    All those who wander aren't lost.

  6. #6
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,996
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Replace hide() with slideUp() and show() with slideDown()
    It's that simple

    Quote Originally Posted by nofel View Post
    btw what does next() do?
    You posted a thread a while back asking how to become a better developer.
    Please don't take this the wrong way, but reading the documentation would help.

    The time it took you to ask this question, would have been better spent reading the first sentence of the next() documentation page:

    Description: Get the immediately following sibling of each element in the set of matched elements.

  7. #7
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pullo View Post
    You posted a thread a while back asking how to become a better developer.
    Please don't take this the wrong way, but reading the documentation would help.

    The time it took you to ask this question, would have been better spent reading the first sentence of the next() documentation page:
    Documentation is too techy for me, sometimes i don't get it. no offense taken. i am a slow learner!
    All those who wander aren't lost.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •