CircularAroundPress

A circular reveal animation format that expands from the button press position.

This format reveals the new theme through a circular clipping mask that expands outward from the position where the theme toggle button was pressed. This creates a ripple-like effect emanating from the user's interaction point. If no press position is available, the animation falls back to expanding from the center.

Functions

Link copied to clipboard
open override fun ContentDrawScope.drawAnimationLayer(image: ImageBitmap, progress: Float, pressPosition: Offset?, useDynamicContent: Boolean)

Draws the animated layer during a theme transition.