I’ve modified the code from w3schools – Hide paragraph to include a show button which takes 6 seconds for the text to show. It takes approx 3 seconds for the text to begin re-displaying after it has been hidden, is there a reason for this ? Here is my modified code (just paste this code into “Hide paragraph” URL on w3schools) :
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(3000);
});
$("#show").click(function(){
$("p").show(6000);
});
});
</script>
</head>
<body>
<button id = "hide">Hide</button>
<button id = "show">Show</button>
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>
</body>
</html>
I think it’s related to the easing you use. try
fiddle here http://jsfiddle.net/HhubD/
As you can read in the doc show() has an easing parameter
probably the "Swing" easing wich is the default is slow at the beginning and then it speeds up