Change the Transition Speed

Change the page transition speed for a given form.

Code

Filename: gppt-change-transition-speed.php

<?php
/**
 * Gravity Perks // Page Transitions // Change the Transition Speed
 * https://gravitywiz.com/documentation/gravity-forms-page-transitions/
 *
 * Change the page transition speed for a given form.
 */
// Update "123" to your form ID.
add_filter('gppt_scripts_args_123', function ( $args, $form ) {
	// Update "800" to your desired transition speed.
	$args['transitionSettings']['speed'] = 800;
	return $args;
}, 10, 2);

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.