Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created March 29, 2012 03:13
Show Gist options
  • Select an option

  • Save billrobbins/2232869 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/2232869 to your computer and use it in GitHub Desktop.
Javascript Start
<script type="text/javascript">
var $j = jQuery.noConflict();
// home page slider
$j(window).load(function() {
$j('#slider').nivoSlider({
effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
slices:1,
animSpeed:500, //Slide transition speed
pauseTime:4000,
directionNav:false //Next & Prev
});
});
// superfish
$j(function(){
$j('ul.menu').superfish();
});
// featured post cover and reveal
$j(document).ready(function(){
$j('.boxgrid.captionfull').hover(function(){
$j(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
}, function() {
$j(".cover", this).stop().animate({top:'178px'},{queue:false,duration:160});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment