NAV
javascript

.setButtonEffect()

var negativePixels = '-4px';
SnapEngage.setButtonEffect(negativePixels);

Deprecated. This API method is not supported in the Design Studio. (If you are a legacy Style tab user, this API is supported).

Set the non-hover button position for your button. (Direction is set automatically by your button’s position.)

Parameters

Parameter Type Description
negativePixels String If you are a legacy Style tab user using a custom button image, and you would like to hide more of the button when it is not being hovered over, you can use this function to override the default positioning (which is '-4px'). The direction of the positioning is determined by your Admin Dashboard Style tab. (On-hover, the button’s position changes to ‘0px’).