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
+6
-3
@@ -1,10 +1,12 @@
|
||||
import { useSelector } from "react-redux";
|
||||
import { workspaceSelector } from "../../../../features/workspace/workspaceSelector";
|
||||
|
||||
import { theme } from "../../../../shared/theme";
|
||||
import { BasicBlock } from "../styles";
|
||||
|
||||
import { DriverPortrait } from "../../../BroadcastGraphics/Common/DriverPortrait";
|
||||
import { PositionFlag } from "../../../BroadcastGraphics/Common/PositionFlag";
|
||||
import { VenetianBlindsTransition } from "../../../BroadcastGraphics/Common/VenetianBlindsTransition";
|
||||
import { BasicBlock } from "../styles";
|
||||
|
||||
export function VenetianBlindsWorkspace() {
|
||||
const { prototypeState } = useSelector(workspaceSelector);
|
||||
@@ -35,8 +37,8 @@ export function VenetianBlindsWorkspace() {
|
||||
) : (
|
||||
<VenetianBlindsTransition
|
||||
blindsColor="#f60d0d"
|
||||
blindsColorFadeDuration={200}
|
||||
blindsColorFadeDelay={100}
|
||||
blindsColorFadeDuration={300}
|
||||
blindsColorFadeDelay={200}
|
||||
blindsAngle={-45}
|
||||
blindsOpenDuration={100}
|
||||
blindsOpenDelay={100}
|
||||
@@ -47,6 +49,7 @@ export function VenetianBlindsWorkspace() {
|
||||
opacityStart={0.1}
|
||||
opacityDuration={200}
|
||||
opacityDelay={100}
|
||||
spanBlinkDuration={500}
|
||||
>
|
||||
<PositionFlag size={122} number={1} />
|
||||
</VenetianBlindsTransition>
|
||||
|
||||
Reference in new issue
Block a user