Skip to content

Instantly share code, notes, and snippets.

@dotspencer
Created April 11, 2016 23:12
Show Gist options
  • Save dotspencer/bc4d5cec9e217a1b4a9781d6f82e7a38 to your computer and use it in GitHub Desktop.
Save dotspencer/bc4d5cec9e217a1b4a9781d6f82e7a38 to your computer and use it in GitHub Desktop.
iCORDS homepage shortcode
jQuery('.primero').prepend("<i class='x-icon-angle-down custom'></i>");
// Hides down arrow
jQuery(document).scroll(function() {
var y = jQuery(this).scrollTop();
if (y > 100) {
jQuery('.x-icon-angle-down.custom').addClass('trans');
} else {
jQuery('.x-icon-angle-down.custom').removeClass('trans');
}
});
.h-custom-headline{
color: #333;
}
.custom_bullets li{
line-height: inherit;
margin-bottom: 15px;
}
.x-icon-angle-down.custom{
display: block;
text-align: center;
font-size: 40px;
margin-top: -100px;
opacity: 1;
transition: all .2s;
}
.trans{
opacity: 0 !important;
}
span.emp{
padding: 10px;
background-color: lightblue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment