ISSUE-045 - Venetian Blinds - Added blinking animation for the position number.
Activated with a blink duration. I had to consider a manual delay before starting. The animation delay didn't really work as the number would be visible until the animation started. I'm sure there's a solution but I'm a little lazy to figure it out at the moment. Otherwise, for future reference: iirc the delay would be 250ms and the duration would be 400ms.
This commit is contained in:
1 parent
177272df6f
commit
b1b3b62d3a
4 files changed
+40
-10
No files matched your search
@@ -3,6 +3,8 @@ import { useDrag } from "@use-gesture/react";
|
||||
import useMeasure from "react-use-measure";
|
||||
import { clamp } from "lodash";
|
||||
|
||||
import { Fraction } from "../../../../types/style";
|
||||
|
||||
import {
|
||||
AnimatedProgressSliderBar,
|
||||
ProgressSliderBarHandle,
|
||||
@@ -19,7 +21,7 @@ const MARGIN_WIDTH = 15;
|
||||
const percentage = (value: number) => `${Math.floor(value * 100)}%`;
|
||||
|
||||
type ProgressSliderProps = {
|
||||
value: number, // Fraction of 1 (0.0 to 1.0)
|
||||
value: Fraction,
|
||||
onChange: (value: number) => void,
|
||||
disabled?: boolean,
|
||||
formatter?: (value: number) => string,
|
||||
|
||||
Reference in new issue
Block a user