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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:34:34+00:00 2026-06-08T06:34:34+00:00

This is not working: <div id=draw> <script> $(document).ready( function () { var filler =

  • 0

This is not working:

<div id="draw">
        <script>
                    $(document).ready( function () {

                        var filler = {
                            'fill': 'white',
                            'stroke': 'white',
                            'stroke-width': '0',
                            'cursor': 'pointer'
                        }

                        var paper = Raphael(100, 296, 175, 5);

                        var rectangle = paper.rect(0, 0, 5, 5);
                        rectangle.attr(filler);
                        rectangle.node.id = 'rectangle';

                        $("#rectangle").hide();
                        $("#rectangle").fadeIn('2000');

                    });
        </script>
</div>

Nothing is shown. If I use only hide() it hides the rectangle. However, I want to fadeIn then, I tried to use #rectangle { display: none; } in my css file and then use fadeIn, but it is not working either.

I don’t understand what am I doing wrong at all. I am not using remove(), but only hide(), so why it will not show?

The firebug shows that style=”display:none;”; . Even when I remove the css for display none (#rectangle { display: none; }) from my css file.

It seems like after hide() you can not use fadeIn() function, but why?

Thanks in advance for your help.

  • 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-08T06:34:35+00:00Added an answer on June 8, 2026 at 6:34 am

    Raphael does have only animation opacity for simulation of fadeIn and fadeOut. Maybe some future versions bring this to life. Just deal with it for now. Have a nice day.

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

Sidebar

Related Questions

Why is this not working? $(document).ready(function(){ var content = '<a href=http://example.com/index.php><b>Some text!</b></a> - <a
Code: <div id=d1>d1</div> <div id=d2>d2</div> <script> $(function(){ var j=$(); j=j.add(#d1); j=j.add(#d2); j.remove(#d1);//not this... //alert(j.length);
I have this javascript file ( $(#paper2) is a div) var lines=0; $(document).ready(function() {
Can anybody tell me why this is not working jsfiddle Code ? JavaScript: $(document).ready(function()
can you tell me why this JavaScript not working . function expand() { var
I am using this function to show/hide a div. But this is not working.
Why is this not working? <div class=videocontainer id='mediaspace-55'></div> <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?ver=3.0.1'></script> <script type='text/javascript'><!-- var
<div id="body" onmouseover="if ($('div#menu').is(':visible')) {$('div#menu:visible').hide('blind', { direction: 'left' }, 5000);}"> This is not working
I don't know why this is not working, I want the div to be
Why is this not working? <div class=homePrizes> <div class=homeCredit> 1250 Points </div> <div class=homePrize>

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.