Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***************** PAGE TEMPLATE *****************************
- <?php
- /*
- * Template Name: Full Width
- */
- get_header(); ?>
- <?php get_template_part( 'element', 'prepage' ); ?>
- <div id="txtlzr"></div>
- <script type="text/javascript">
- jQuery(document).ready(function($){
- var list = ['first blurb', 'second blurb', 'third blurb']; // list of blurbs
- var txt = $('#txtlzr'); // The container in which to render the list
- var options = {
- duration: 1000, // Time (ms) each blurb will remain on screen
- rearrangeDuration: 1000, // Time (ms) a character takes to reach its position
- effect: 'random', // Animation effect the characters use to appear
- centered: true // Centers the text relative to its container
- }
- txt.textualizer(list, options); // textualize it!
- txt.textualizer('start'); // start
- });
- </script>
- <?php get_footer(); ?>
- ******************* FUNCTIONS.PHP ***********************
- wp_register_script( 'textualizer', get_template_directory_uri() . '/assets/js/textualizer.js', array('jquery'),
- false, true);
- wp_enqueue_script( 'textualizer');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement