.setButtonEffect()
(Last Updated On: September 6, 2017)
Overview

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

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


Parameters


negativePixels
Type
String | (Required)
Values
Must be a measurement in px, and conform to the pattern: '-4px'
Description
If you are 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 Configurator’s Style tab.
(On-hover, the button’s position changes to ‘0px’)