PHP code example of arts / scroll-timeline-polyfill

1. Go to this page and download the library: Download arts/scroll-timeline-polyfill library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arts / scroll-timeline-polyfill example snippets


\Arts\ScrollTimelinePolyfill\Plugin::instance();

wp_register_script( 'my-effects', $url, array( 'scroll-timeline-polyfill' ), $ver, true );

add_filter(
	'arts/scroll_timeline_polyfill/skipped_styles',
	fn( $handles ) => array_merge( $handles, array( 'my-handle' ) )
);