* @link https://www.elicus.com/ * @copyright 2019 Elicus Technologies Private Limited * @version 1.4.1 */ if ( '' !== $flip_speed ) { if ( 'on' === $layout1_shake_effect ) { ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .flipbox_side.el-transition, %%order_class%% .layout1.el-transition', 'declaration' => sprintf( '-webkit-transition: transform %1$sms cubic-bezier(0.3, 0.9, 0.40, 1.3);', intval( $flip_speed ) ) ) ); ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .flipbox_side.el-transition, %%order_class%% .layout1.el-transition', 'declaration' => sprintf( '-moz-transition: transform %1$sms cubic-bezier(0.3, 0.9, 0.40, 1.3);', intval( $flip_speed ) ) ) ); ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .flipbox_side.el-transition, %%order_class%% .layout1.el-transition', 'declaration' => sprintf( 'transition: transform %1$sms cubic-bezier(0.3, 0.9, 0.40, 1.3);', intval( $flip_speed ) ) ) ); } else { ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .flipbox_side.el-transition, %%order_class%% .layout1.el-transition', 'declaration' => sprintf( '-webkit-transition: transform %1$sms cubic-bezier(.5, .3, .3, 1);', intval( $flip_speed ) ) ) ); ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .flipbox_side.el-transition, %%order_class%% .layout1.el-transition', 'declaration' => sprintf( '-moz-transition: transform %1$sms cubic-bezier(.5, .3, .3, 1);', intval( $flip_speed ) ) ) ); ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .flipbox_side.el-transition, %%order_class%% .layout1.el-transition', 'declaration' => sprintf( 'transition: transform %1$sms cubic-bezier(.5, .3, .3, 1);', intval( $flip_speed ) ) ) ); } /*if ( in_array( $layout1_flip_style, array( 'diagonalLeft', 'diagonalRight', 'diagonalLeftInverted', 'diagonalRightInverted' ) ) ) { ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .et_pb_module_inner, %%order_class%% .layout1', 'declaration' => 'perspective: none;' ) ); }*/ } if( 'on' === $layout1_3d_depth ) { ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .dipl_flipbox_wrapper .flipbox_inner', 'declaration' => sprintf( '-webkit-transform: translateZ(50px) scale(0.95);' ) ) ); ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .dipl_flipbox_wrapper .flipbox_inner', 'declaration' => sprintf( '-moz-transform: translateZ(50px) scale(0.95);' ) ) ); ET_Builder_Element::set_style( $render_slug, array( 'selector' => '%%order_class%% .dipl_flipbox_wrapper .flipbox_inner', 'declaration' => sprintf( 'transform: translateZ(50px) scale(0.95);' ) ) ); } if( '' !== $front_image ) { if ( 'off' === $front_use_icon ) { $f_image = '
'.$front_image.'
'; } else { if( 'on' === $front_style_icon ) { $f_image = '
'.$front_image.'
'; } else { $f_image = '
'.$front_image.'
'; } } } else { $f_image = ''; } if( '' !== $front_title ) { $f_title = '
'.$front_title.'
'; } else { $f_title = ''; } if( '' !== $front_content ) { $f_content = '
'.$front_content.'
'; } else { $f_content = ''; } if( '' !== $back_image ) { if ( 'off' === $back_use_icon ) { $b_image = '
'.$back_image.'
'; } else { if( 'on' === $back_style_icon ) { $b_image = '
'.$back_image.'
'; } else { $b_image = '
'.$back_image.'
'; } } } else { $b_image = ''; } if( '' !== $back_title ) { $b_title = '
'.$back_title.'
'; } else { $b_title = ''; } if( '' !== $back_content ) { $b_content = '
'.$back_content.'
'; } else { $b_content = ''; } if( '' !== $back_button_output ) { $b_button = '
'.$back_button_output.'
'; } else { $b_button = ''; } $flipbox_content = '
' .$f_image. '
' .$f_title .$f_content. '
' .$b_image. '
' .$b_title .$b_content .$b_button. '
';