Skip to content

Instantly share code, notes, and snippets.

@agileguy
Created April 22, 2012 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agileguy/2465474 to your computer and use it in GitHub Desktop.
Save agileguy/2465474 to your computer and use it in GitHub Desktop.
View
@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