Last active
August 7, 2018 19:08
-
-
Save Edwardtonnn/55440f41ab6d2450b93b11d59dc6c7d2 to your computer and use it in GitHub Desktop.
Enqueue Scroll Reveal js library
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
<?php | |
// Do not include opening php tag | |
//Scroll Reveal JS | |
add_action('wp_enqueue_scripts', 'load_scroll_reveal', 20); | |
if (is_front_page()){ | |
// Scroll Reveal Main JS | |
wp_enqueue_script( | |
'scrollReveal', | |
get_stylesheet_directory_uri() . '/js/scrollreveal.min.js', | |
array(), | |
null, | |
true | |
); | |
// Customized Script | |
wp_enqueue_script( | |
'scroll-init', | |
get_stylesheet_directory_uri() . '/js/scroll-init.js', | |
array(), | |
null, | |
true | |
); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment