slider.animateToValue(value, animationOptions)

Automatically animate to a specific value.
译:自动动画到一个特定的值。

Arguments(参数)

value — A number, ranging from the min to the max value. 译:一个数,从最小到最大值。 animationOptions — An object with curve, time, delay and repeat properties. (Optional) 译:具有曲线、时间、延迟和重复特性的对象。(可选)

# Create a SliderComponent 
slider = new SliderComponent
slider.center()

# Animate to 1 
slider.animateToValue(1)

# Animate with a custom curve 
slider.animateToValue(1, { curve: "spring(400,40,0)"})

results matching ""

    No results matching ""