Object: hsVariables
Functions
EventsObject: hs.ExpanderVariablesFunctionsEvents
|
hs.easingSets the style of the expand/contract effect.
From version 3.3.7 Highslide has two built-in easing options, easeInQuad and linearTween. While linearTween makes the image expand at a fixed rate, easeInQuad makes the image expand first slowly, then faster. Until version 3.3.7, the default easing was equivalent to linearTween. The two built-in options can be supplemented by Robert Penner's Easing Equations, offering a variety of different effects. See the example below for how to install this. The hs.easing applies to both opening and closing the expander unless hs.easingClose is set. To adjust the duration of the easing, adjust hs.expandDuration, hs.expandSteps, hs.restoreDuration and hs.restoreSteps. Details
Example1) Installing Robert Penner's Easing Equations
2) Setting the easing to linearTweenPut this in the head section of your page. This affects all expanders <script type="text/javascript"> hs.easing = 'linearTween'; </script> 3) Easing demonstrationSee also |