Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
scrollReveal.js for Genesis framework.
// Enqueue scrollReveal scripts
function enqueue_scrollreveal_scripts() {
wp_enqueue_script( 'scrollreveal', get_stylesheet_directory_uri() . '/js/scrollreveal.min.js', array( 'jquery' ),'3.3.6',true );
wp_enqueue_script( 'scrollreveal-init', get_stylesheet_directory_uri() . '/js/scrollReveal-init.js', array( 'jquery' ), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'enqueue_scrollreveal_scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.