Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 1022 Bytes

Animation.md

File metadata and controls

42 lines (37 loc) · 1022 Bytes

Animation

An Animation Input Field (wowjs)

Parameters

Parameter Type Value
type required Predefined String (textarea)
title optional String
desc optional String
std optional Array
tab optional String(style)
section optional String

Return

Always return object

Example

'addon_animation'=> array(
	'type' => 'animation',
	'title' => __('Animation Field','your-textdomain'),
	'std' => array(
	    	'name' => 'wow animated fadeIn',
		'delay' => '300',
		'duration' => '400'
	    ),
)

Not support 'selector' parameters.

Controls

PHP

Inside the render() method

echo '<div class="sample-animation wppb-wow wppb-animated '.$data['settings']['addon_animation']['name'].' '.$data['settings']['addon_animation']['duration'].'" data-wppb-wow-delay="'.$data['settings']['addon_animation']['delay'].'"> Animated Text </div>';

JS Template

Inside the getTemplate() method-

<div>{{data.addon_animation.duration}}</div>