Created
April 3, 2014 14:56
-
-
Save ABrouwer/9955899 to your computer and use it in GitHub Desktop.
Portfolio assignment 01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function(){ | |
| var headings = $("section.assignment > h1"); | |
| var paragraphs = $("p"); | |
| paragraphs.not(":first").hide(); | |
| headings.on("mouseover", function(){ | |
| var t = $(this); | |
| var tPara = t.next(); | |
| if(tPara.is(":visible")){ | |
| return; | |
| } | |
| paragraphs.slideUp("normal"); | |
| tPara.slideDown("normal"); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment