Created
April 11, 2016 23:12
-
-
Save dotspencer/bc4d5cec9e217a1b4a9781d6f82e7a38 to your computer and use it in GitHub Desktop.
iCORDS homepage shortcode
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
echo "" |
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
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'); | |
} | |
}); |
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
.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