6,109
Loading...
Uploader Comments (JREAMdesign)
see all
All Comments (6)
-
Thank you for this tutorial. I didn't even know about toggle() function... :)
-
Something to note. hide(), toggle() and the like have an optional parameter for how long it will take to do that.
So, $('#hello').hide(1000); will make the div *fade out*. The 1000 is the number of milliseconds the animation will take.
There is also a fadeIn() and fadeOut(), which do a similar job.
-
You are simply amazing... Nice tutorial!
Loading...
Hi, thanks for the videos. I'm trying to figure out how to get the toggle button you see on YouTube, ie the one which points downwards when text is hidden; and upwards when the text is being shown. Can you help?
NicholasLeeson 1 year ago
@NicholasLeeson I would use JQuery for that. Basically it looks like umm.
$('#item').click(function() { $('#more_content').slideToggle(); $('#button').toggleCss('class1', 'class2');
});
JREAMdesign 1 year ago
@JREAMdesign Woops I had thought this was a PHP tutorial, haha.. Thats why I said use JQuery :P
JREAMdesign 1 year ago