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

# rippleTransition()

Simulates a ripple in a pond to transiton from one image to another.

## Declaration

```swift
class func rippleTransition() -> any CIFilter & CIRippleTransition
```

## Return Value

Return Value The transition image.

## Discussion

Discussion This method applies the ripple transition filter to an image. The effect transitions from one image to another by creating a circular wave that expands from the center point, revealing the target image through the wave effect. The ripple transition filter uses the following properties: The following code creates a filter that transitions from the input image to the target image with a water-like ripple effect. func ripple (inputImage: CIImage, targetImage: CIImage) -> CIImage {     let rippleTransition = CIFilter.rippleTransition()     rippleTransition.inputImage = inputImage     rippleTransition.targetImage = targetImage     rippleTransition.center = CGPoint(x: 250, y: 150)     rippleTransition.width = 100     rippleTransition.extent = CGRect(x: 54, y: 80, width: 300, height: 300)     rippleTransition.scale = 22     rippleTransition.time = 0.3     return rippleTransition.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)
- [pageCurlWithShadowTransition()](coreimage/cifilter-swift.class/pagecurlwithshadowtransition().md)
- [swipeTransition()](coreimage/cifilter-swift.class/swipetransition().md)
