---
title: pageCurlWithShadowTransition()
framework: coreimage
role: symbol
role_heading: Type Method
path: coreimage/cifilter-swift.class/pagecurlwithshadowtransition()
---

# pageCurlWithShadowTransition()

Simulates the curl of a page, revealing the target image with added shadow.

## Declaration

```swift
class func pageCurlWithShadowTransition() -> any CIFilter & CIPageCurlWithShadowTransition
```

## Mentioned in

Customizing Image Transitions

## Return Value

Return Value The transition image.

## Discussion

Discussion This method applies the page curl with shadow transition filter to an image. The effect transitions from one image to another by simulating a curling page, revealing the target image as the page curls with a shadow effect from the backside image. The page curl with shadow transition filter uses the following properties: The following code creates a page curling back to reveal the target image with an added shadow. func pageCurl(inputImage: CIImage, targetImage: CIImage, backsideImage: CIImage) -> CIImage {     let pageCurlTransition = CIFilter.pageCurlWithShadowTransition()     pageCurlTransition.inputImage = inputImage     pageCurlTransition.targetImage = targetImage     pageCurlTransition.backsideImage = backsideImage     pageCurlTransition.extent = CGRect(x: 54, y: 90, width: 300, height: 300)     pageCurlTransition.time = 0.5     pageCurlTransition.angle = 4     pageCurlTransition.radius = 100     pageCurlTransition.shadowAmount = 10     pageCurlTransition.shadowSize = 6     pageCurlTransition.shadowExtent = CGRect(x: 32, y: 56, width: 400, height: 400)     return pageCurlTransition.outputImage! }

## See Also

### Filters

- [accordionFoldTransition()](coreimage/cifilter-swift.class/accordionfoldtransition().md)
- [barsSwipeTransition()](coreimage/cifilter-swift.class/barsswipetransition().md)
- [copyMachineTransition()](coreimage/cifilter-swift.class/copymachinetransition().md)
- [disintegrateWithMaskTransition()](coreimage/cifilter-swift.class/disintegratewithmasktransition().md)
- [dissolveTransition()](coreimage/cifilter-swift.class/dissolvetransition().md)
- [flashTransition()](coreimage/cifilter-swift.class/flashtransition().md)
- [modTransition()](coreimage/cifilter-swift.class/modtransition().md)
- [pageCurlTransition()](coreimage/cifilter-swift.class/pagecurltransition().md)
- [rippleTransition()](coreimage/cifilter-swift.class/rippletransition().md)
- [swipeTransition()](coreimage/cifilter-swift.class/swipetransition().md)
