<?php
/**
 * This is an auto-generated script from src/action-types/frontend/rotate.js.
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

ob_start();
?>
InteractRunner.addActionConfig({rotate:{initAction:r=>{const n=r.getValue("transformOrigin");r.initActionAnimation({onBegin:()=>{r.getTargets().forEach(t=>{t.style.transformOrigin="custom"===n?r.getValue("customTransformOrigin"):n})},rotate:r.getValue("rotate")})},initialStyles:t=>{var r=t.getValue("transformOrigin");return`
				transform-origin: ${"custom"===r?t.getValue("customTransformOrigin"):r};
				transform: rotate(${t.getValue("rotate")}deg);
			`}}});
<?php
return ob_get_clean();
	