SemanticZoom.zoomFactor property

This topic has not yet been rated - Rate this topic

Gets or sets a value that specifies how much the scaling the cross-fade animation performs when the SemanticZoom transitions between views.

Syntax


<div data-win-control="WinJS.UI.SemanticZoom" data-win-options="{ zoomFactor : value}" />


var zoomFactor = semanticZoom.zoomFactor;
semanticZoom.zoomFactor = zoomFactor;

Property value

Type: Number

A value between 0.2 and 0.85 that specifies the scale of the zoomed out view. Smaller values emphasize the zooming effect, while larger values minimize it. The default value is 0.65.

Remarks

During a zoom-in transition, the zoomed-in view scales between 1 and zoomFactor while transparency goes between 1 and 0. During a zoom-out transition, the scaling and transparency move in the opposite direction.

During zoom-in, the zoomed-out view scales between 1/zoomFactor and 1 while transparency goes between 0 and 1.The reverse happens during zoom-out.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

SemanticZoom

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.