ISSUE-045 - Chyron Body - Fixed and calibrated driver portrait venetian blinds transition.
Slight adjustment to the BaseBackground wipe. Added a new overlay image to help with it.
This commit is contained in:
1 parent
79b098af6c
commit
462ea4852b
4 files changed
+36
-24
No files matched your search
@@ -185,28 +185,36 @@ export function ChyronDriver({
|
|||||||
</FlagContainer>
|
</FlagContainer>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
{showPortrait && (
|
{showPortrait && (
|
||||||
<VenetianBlindsTransition
|
<DriverPortraitContainer
|
||||||
visible={openState !== 0}
|
open={openState !== 0}
|
||||||
delay={1500 * DDM}
|
transitionProps={[{
|
||||||
blindsColor={teamColor}
|
property: "opacity",
|
||||||
blindsColorFadeDuration={600 * DDM}
|
duration: 500 * DDM,
|
||||||
blindsColorFadeDelay={300 * DDM}
|
delay: 2000 * DDM,
|
||||||
blindsAngle={-45}
|
}]}
|
||||||
blindsOpenDuration={600 * DDM}
|
placement={{ right: "-5px", bottom: "0" }}
|
||||||
blindsOpenDelay={600 * DDM}
|
|
||||||
blindsSize={{ transparent: 2, opaque: 5 }}
|
|
||||||
wipeAngle={45}
|
|
||||||
wipeDuration={600 * DDM}
|
|
||||||
wipeStartingCorner="bottomRight"
|
|
||||||
>
|
>
|
||||||
<DriverPortraitContainer placement={{ right: "-5px", bottom: "0" }}>
|
<VenetianBlindsTransition
|
||||||
|
visible={openState !== 0}
|
||||||
|
delay={2000 * DDM}
|
||||||
|
blindsColor={teamColor}
|
||||||
|
blindsColorFadeDuration={600 * DDM}
|
||||||
|
blindsColorFadeDelay={300 * DDM}
|
||||||
|
blindsAngle={-45}
|
||||||
|
blindsOpenDuration={300 * DDM}
|
||||||
|
blindsOpenDelay={300 * DDM}
|
||||||
|
blindsSize={{ transparent: 2, opaque: 5 }}
|
||||||
|
wipeAngle={45}
|
||||||
|
wipeDuration={0 * DDM}
|
||||||
|
wipeStartingCorner="bottomRight"
|
||||||
|
>
|
||||||
<DriverPortrait
|
<DriverPortrait
|
||||||
driverId={car.driver.id}
|
driverId={car.driver.id}
|
||||||
height={baseHeight * 2.5}
|
height={baseHeight * 2.5}
|
||||||
verticalOffsetPercentage={18}
|
verticalOffsetPercentage={18}
|
||||||
/>
|
/>
|
||||||
</DriverPortraitContainer>
|
</VenetianBlindsTransition>
|
||||||
</VenetianBlindsTransition>
|
</DriverPortraitContainer>
|
||||||
)}
|
)}
|
||||||
</AnimatedBaseContainer>
|
</AnimatedBaseContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const BaseOutline = styled(BaseShape)<TransitionProps>`
|
|||||||
? "2px solid #ffffff00"
|
? "2px solid #ffffff00"
|
||||||
: "5px solid #ffffffff"};
|
: "5px solid #ffffffff"};
|
||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
BaseOutline.displayName = "BaseOutline";
|
BaseOutline.displayName = "BaseOutline";
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ export const BaseBlack = styled(BaseShape)<TransitionProps>`
|
|||||||
|
|
||||||
background-color: black;
|
background-color: black;
|
||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
BaseBlack.displayName = "BaseBlack";
|
BaseBlack.displayName = "BaseBlack";
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ export const BaseBackgroundColor = styled(BaseShape)<BaseBackgroundColorProps &
|
|||||||
background-color: ${({ teamColor }) => teamColor};
|
background-color: ${({ teamColor }) => teamColor};
|
||||||
opacity: ${({ open }) => open ? 0 : 1};
|
opacity: ${({ open }) => open ? 0 : 1};
|
||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
BaseBackgroundColor.displayName = "BaseBackgroundColor";
|
BaseBackgroundColor.displayName = "BaseBackgroundColor";
|
||||||
|
|
||||||
@@ -77,9 +77,9 @@ export const BaseLayout = styled(BaseShape)<TransitionProps>`
|
|||||||
|
|
||||||
clip-path: ${({ open }) => open
|
clip-path: ${({ open }) => open
|
||||||
? "polygon(0 0, 100% 0, 100% 100%, 0 100%)"
|
? "polygon(0 0, 100% 0, 100% 100%, 0 100%)"
|
||||||
: "polygon(0 0, 0 0, -50% 100%, -50% 100%)"};
|
: "polygon(0 0, 0 0, -40% 100%, -40% 100%)"};
|
||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type TeamColorBarProps = {
|
type TeamColorBarProps = {
|
||||||
@@ -98,7 +98,7 @@ export const TeamColorBar = styled.div<TeamColorBarProps & TransitionProps>`
|
|||||||
|
|
||||||
outline: ${({ color }) => color} solid 1px;
|
outline: ${({ color }) => color} solid 1px;
|
||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
TeamColorBar.displayName = "TeamColorBar";
|
TeamColorBar.displayName = "TeamColorBar";
|
||||||
|
|
||||||
@@ -196,16 +196,19 @@ export const FlagContainer = styled.div<FlagContainerProps & TransitionProps>`
|
|||||||
|
|
||||||
opacity: ${({ open }) => open ? 1 : 0};
|
opacity: ${({ open }) => open ? 1 : 0};
|
||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
FlagContainer.displayName = "FlagContainer";
|
FlagContainer.displayName = "FlagContainer";
|
||||||
|
|
||||||
type DriverPortraitContainerProps = {
|
type DriverPortraitContainerProps = TransitionProps & {
|
||||||
placement: Placement,
|
placement: Placement,
|
||||||
};
|
};
|
||||||
export const DriverPortraitContainer = styled.div<DriverPortraitContainerProps>`
|
export const DriverPortraitContainer = styled.div<DriverPortraitContainerProps>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
${({ placement }) => placementStyleRules(placement)}
|
${({ placement }) => placementStyleRules(placement)}
|
||||||
|
|
||||||
|
opacity: ${({ open }) => open ? 1 : 0};
|
||||||
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
DriverPortraitContainer.displayName = "DriverPortraitContainer";
|
DriverPortraitContainer.displayName = "DriverPortraitContainer";
|
||||||
@@ -13,6 +13,7 @@ export const workspaces: WorkspaceObject = {
|
|||||||
"chyron-driver-medium-full-vet.png",
|
"chyron-driver-medium-full-vet.png",
|
||||||
"chyron-driver-medium-full-per.png",
|
"chyron-driver-medium-full-per.png",
|
||||||
"chyron-driver-medium-full-msc.png",
|
"chyron-driver-medium-full-msc.png",
|
||||||
|
"chyron-driver-medium-op0-ham.png",
|
||||||
"chyron-driver-medium-op1-ham.png",
|
"chyron-driver-medium-op1-ham.png",
|
||||||
"chyron-driver-medium-op2-ham.png",
|
"chyron-driver-medium-op2-ham.png",
|
||||||
"chyron-driver-medium-full-ham.png",
|
"chyron-driver-medium-full-ham.png",
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Reference in new issue
Block a user