<!--
{
  "documentType" : "article",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/fill-modes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Fill Modes"
}
-->

# Fill Modes

These constants determine how the timed object behaves once its active duration has completed. They are used with the [`fillMode`](/documentation/QuartzCore/CAMediaTiming/fillMode) property.

## Topics

### Constants

[`removed`](/documentation/QuartzCore/CAMediaTimingFillMode/removed)

The receiver is removed from the presentation when the animation is completed.

[`forwards`](/documentation/QuartzCore/CAMediaTimingFillMode/forwards)

The receiver remains visible in its final state when the animation is completed.

[`backwards`](/documentation/QuartzCore/CAMediaTimingFillMode/backwards)

The receiver clamps values before zero to zero when the animation is completed.

[`both`](/documentation/QuartzCore/CAMediaTimingFillMode/both)

The receiver clamps values at both ends of the object’s time space

### Constants

[`removed`](/documentation/QuartzCore/CAMediaTimingFillMode/removed)

The receiver is removed from the presentation when the animation is completed.

[`forwards`](/documentation/QuartzCore/CAMediaTimingFillMode/forwards)

The receiver remains visible in its final state when the animation is completed.

[`backwards`](/documentation/QuartzCore/CAMediaTimingFillMode/backwards)

The receiver clamps values before zero to zero when the animation is completed.

[`both`](/documentation/QuartzCore/CAMediaTimingFillMode/both)

The receiver clamps values at both ends of the object’s time space

[kCAFillModeFrozen](/documentation/QuartzCore/kcafillmodefrozen)

The mode was deprecated before OS X v10.5 shipped.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)