Implement AOS scroll animations for article cards
This commit is contained in:
@@ -40,11 +40,17 @@ function wisdom1_scripts()
|
||||
// Enqueue Bootstrap CSS
|
||||
wp_enqueue_style('bootstrap-style', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css', array(), '5.3.3');
|
||||
|
||||
// Enqueue AOS (Animate On Scroll) CSS
|
||||
wp_enqueue_style('aos-style', 'https://unpkg.com/aos@2.3.1/dist/aos.css', array(), '2.3.1');
|
||||
|
||||
// Enqueue Theme CSS (depends on Bootstrap so it loads after)
|
||||
wp_enqueue_style('wisdom1-style', get_stylesheet_uri(), array('bootstrap-style'), '1.1.0');
|
||||
|
||||
// Enqueue Bootstrap JS Bundle (includes Popper)
|
||||
wp_enqueue_script('bootstrap-script', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js', array(), '5.3.3', true);
|
||||
|
||||
// Enqueue AOS Script
|
||||
wp_enqueue_script('aos-script', 'https://unpkg.com/aos@2.3.1/dist/aos.js', array(), '2.3.1', true);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'wisdom1_scripts');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user