Class

CarouselParallaxScrollEffectItemInfo

Visual effect values calculated for an item at a specific index in a scrollable container.

Source set: Common
public class CarouselParallaxScrollEffectItemInfo(
    /** The offset in pixels from the start of the item's bounds by which it is masked. */
    public val maskStart: Float,

    /** The offset in pixels from the start of the item's bounds to the end of the visible mask. */
    public val maskEnd: Float,

    /** The distance in pixels to translate the item's content in the main scrolling axis. */
    public val parallax: Float,

    /** The progress of the mask effect from 0f (fully unmasked) to 1f (maximally masked). */
    public val maskProgress: Float,
)

Visual effect values calculated for an item at a specific index in a scrollable container.

Properties

size

Source set: Common
public val size: Float

The current size of this item in the main scrolling axis taking into account any masking from maskStart and maskEnd.

Functions

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: