Created
April 22, 2012 17:24
-
-
Save agileguy/2465474 to your computer and use it in GitHub Desktop.
View
This file contains 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
@using website.Properties | |
@{ | |
ViewBag.Title = @Resources.SiteName; | |
Layout = "~/Views/Shared/_Layout.cshtml"; | |
} | |
<div id="paragraphs"> | |
<p>@Resources.Bio</p> | |
<p>@Resources.History</p> | |
<p>@Resources.Services</p> | |
</div> | |
<script type=""> | |
$(document).ready(function () { | |
fadeInCollection("#paragraphs p", 3000, 2000); | |
}) | |
function fadeInCollection(selector, init, incr) { | |
$(selector).each(function (index) { | |
var speed = init + incr * index; | |
$(this).fadeOut(0); | |
$(this).fadeIn(speed); | |
}); | |
} | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment