CALayer Animatable Properties

来源:互联网 发布:java编程兵书 编辑:程序博客网 时间:2024/05/30 23:06

CALayer Animatable Properties

The following CALayer class properties can be animated by Core Animation. SeeCALayer for more information.

  • anchorPoint

    Uses the default implied CABasicAnimation described in Table 1.

  • backgroundColor

    Uses the default implied CABasicAnimation described in Table 1. (subproperties are animated using a basic animation)

  • backgroundFilters

    Uses the default implied CATransitionAnimation described in Table 2. Sub-properties of the filters are animated using the default impliedCABasicAnimation described in Table 1.

  • borderColor

    Uses the default implied CABasicAnimation described in Table 1.

  • borderWidth

    Uses the default implied CABasicAnimation described in Table 1.

  • bounds

    Uses the default implied CABasicAnimation described in Table 1.

  • compositingFilter

    Uses the default implied CATransitionAnimation described in Table 2. Sub-properties of the filters are animated using the default impliedCABasicAnimation described in Table 1.

  • contents

  • contentsRect

    Uses the default implied CABasicAnimation described in Table 1.

  • cornerRadius

    Uses the default implied CABasicAnimation described in Table 1.

  • doubleSided

    No default implied animation is set.

  • filters

    Uses the default implied CABasicAnimation described in Table 1. Sub-properties of the filters are animated using the default impliedCABasicAnimation described in Table 1.

  • frame

    The frame property itself is not animatable. You can achieve the same results by modifying thebounds and position properties instead.

  • hidden

    Uses the default implied CABasicAnimation described in Table 1.

  • mask

    Uses the default implied CABasicAnimation described in Table 1.

  • masksToBounds

    Uses the default implied CABasicAnimation described in Table 1.

  • opacity

    Uses the default implied CABasicAnimation described in Table 1.

  • position

    Uses the default implied CABasicAnimation described in Table 1.

  • shadowColor

    Uses the default implied CABasicAnimation described in Table 1.

  • shadowOffset

    Uses the default implied CABasicAnimation described in Table 1.

  • shadowOpacity

    Uses the default implied CABasicAnimation described in Table 1.

  • shadowRadius

    Uses the default implied CABasicAnimation described in Table 1.

  • sublayers

    Uses the default implied CATransitionAnimation described in Table 2.

  • sublayerTransform

    Uses the default implied CABasicAnimation described in Table 1.

  • transform

    Uses the default implied CABasicAnimation described in Table 1.

  • zPosition

    Uses the default implied CABasicAnimation described in Table 1.

Table 1  Default Implied Basic Animation

Description

Value

Class

CABasicAnimation

duration

.25 seconds, or the duration of the current transaction

keyPath

Dependent on layer property type

Table 2  Default Implied Transition

Description

Value

Class

CATransition

duration

.25 seconds, or the duration of the current transaction

type

Fade (kCATransitionFade)

startProgress

0.0

endProgress

1.0


原创粉丝点击