xxxxxxxxxx
COPY
function my_custom_animation($animations) {
$animations['from_right_flip_z'] = array(
'name' => __('From Right Flip Z', 'tg-text-domain'), // name used for the dropdown list in the backed
'visible' => 'perspective(2000px) translateY(0) rotate3d(0,0,1,0deg) scale(1)', // when item is revealed
'hidden' => 'perspective(2000px) translateX(100px) rotate3d(0,0,1,45deg) scale(0.2)' // when item is hidden
);
return $animations;
};
add_filter('tg_add_item_animation', 'my_custom_animation');