.setButtonEffect()
(Last Updated On: April 12, 2013)
Overview

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

SnapEngage.setButtonEffect(negativePixels)


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’)