Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/numq/before-after-slider

"before-after" image comparison slider component for Compose
https://github.com/numq/before-after-slider

before-after compose-desktop compose-library compose-multiplatform image-comparison-slider jetpack-compose slider-image

Last synced: about 2 months ago
JSON representation

"before-after" image comparison slider component for Compose

Awesome Lists containing this project

README

        

# Before & After Slider

Image comparison component implementation for Compose

![gif](./media/before-after-slider.gif)

___

## Features

- Horizontal and vertical slider orientation
- Default, minimum and maximum percentage setting
- Drag policies
- Overriding percentage to use a custom value (dragging is not possible unless null is passed)

## Examples

- [Slider animation using overridden percentage](./example/src/main/kotlin/SliderAnimationExample.kt)
- [Slider usage demonstration](./example/src/main/kotlin/SliderUsageExample.kt)