ISSUE-045 - Venetian Blinds - Figured out some trig to get this to work. The angle of the wipe is now customizable and no longer limited to 45°.
This commit is contained in:
1 parent
c07d364584
commit
14e4c0569d
4 files changed
+56
-32
No files matched your search
+13
-3
@@ -9,20 +9,30 @@ import { BasicBlock } from "../styles";
|
||||
export function VenetianBlindsWorkspace() {
|
||||
const { prototypeState } = useSelector(workspaceSelector);
|
||||
|
||||
const bgColor = prototypeState?.venetianTransition?.showBG
|
||||
const bgColor = prototypeState?.venetianTransition?.showBG ?? true
|
||||
? "black" : "transparent";
|
||||
|
||||
return (
|
||||
<BasicBlock width={450} height={450} color={bgColor} >
|
||||
{prototypeState?.venetianTransition?.mode === "driverPortrait" ? (
|
||||
<VenetianBlindsTransition color={theme.colors.teams.mercedes + "b5"}>
|
||||
<VenetianBlindsTransition
|
||||
blindsColor={theme.colors.teams.mercedes + "b5"}
|
||||
degrees={35}
|
||||
duration={500}
|
||||
wipeStartingCorner="topLeft"
|
||||
>
|
||||
<DriverPortrait
|
||||
driverId="hamilton"
|
||||
height={150}
|
||||
/>
|
||||
</VenetianBlindsTransition>
|
||||
) : (
|
||||
<VenetianBlindsTransition color="#f60d0db5">
|
||||
<VenetianBlindsTransition
|
||||
blindsColor="#f60d0db5"
|
||||
degrees={45}
|
||||
duration={350}
|
||||
wipeStartingCorner="bottomRight"
|
||||
>
|
||||
<PositionFlag size={122} number={1} />
|
||||
</VenetianBlindsTransition>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user