thema de comienzo con efectos

This commit is contained in:
2026-09-22 21:37:59 -06:00
commit 6247ae7cc5
67 changed files with 5604 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
/**
* Lenis smooth scroll, same setup as trivelta-html.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
function alcastromol_smooth_scroll_assets() {
$dir = get_template_directory() . '/parts/smooth-scroll';
$uri = get_template_directory_uri() . '/parts/smooth-scroll';
wp_enqueue_style(
'alcastromol-smooth-scroll',
$uri . '/smooth-scroll.css',
array(),
filemtime( $dir . '/smooth-scroll.css' )
);
wp_enqueue_script(
'lenis',
'https://cdn.jsdelivr.net/npm/lenis@1.1.14/dist/lenis.min.js',
array(),
'1.1.14',
true
);
wp_enqueue_script(
'alcastromol-smooth-scroll',
$uri . '/smooth-scroll.js',
array( 'lenis' ),
filemtime( $dir . '/smooth-scroll.js' ),
true
);
}
add_action( 'wp_enqueue_scripts', 'alcastromol_smooth_scroll_assets' );