Animation.scaleY

Requires:
Base Library≥2.21.8

Method signature
Animation.scaleY(scaleY?: number)

Description

Scale the Y axis

Parameters

ParameterTypeRequiredDescription
scaleYnumberNoScale factor on the Y axis

Return Value

Type: Animation
Animation instance

Examples

Vertical scaling

Page({
  data: {
    animationData: {},
  },
  onReady() {
    const animation = ty.createAnimation({ duration: 500 });
    animation.scaleY(0.5).step();
    this.setData({ animationData: animation.export() });
  },
});