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
+26
-14
No files matched your search
@@ -185,28 +185,36 @@ export function ChyronDriver({
|
||||
</FlagContainer>
|
||||
</BaseLayout>
|
||||
{showPortrait && (
|
||||
<DriverPortraitContainer
|
||||
open={openState !== 0}
|
||||
transitionProps={[{
|
||||
property: "opacity",
|
||||
duration: 500 * DDM,
|
||||
delay: 2000 * DDM,
|
||||
}]}
|
||||
placement={{ right: "-5px", bottom: "0" }}
|
||||
>
|
||||
<VenetianBlindsTransition
|
||||
visible={openState !== 0}
|
||||
delay={1500 * DDM}
|
||||
delay={2000 * DDM}
|
||||
blindsColor={teamColor}
|
||||
blindsColorFadeDuration={600 * DDM}
|
||||
blindsColorFadeDelay={300 * DDM}
|
||||
blindsAngle={-45}
|
||||
blindsOpenDuration={600 * DDM}
|
||||
blindsOpenDelay={600 * DDM}
|
||||
blindsOpenDuration={300 * DDM}
|
||||
blindsOpenDelay={300 * DDM}
|
||||
blindsSize={{ transparent: 2, opaque: 5 }}
|
||||
wipeAngle={45}
|
||||
wipeDuration={600 * DDM}
|
||||
wipeDuration={0 * DDM}
|
||||
wipeStartingCorner="bottomRight"
|
||||
>
|
||||
<DriverPortraitContainer placement={{ right: "-5px", bottom: "0" }}>
|
||||
<DriverPortrait
|
||||
driverId={car.driver.id}
|
||||
height={baseHeight * 2.5}
|
||||
verticalOffsetPercentage={18}
|
||||
/>
|
||||
</DriverPortraitContainer>
|
||||
</VenetianBlindsTransition>
|
||||
</DriverPortraitContainer>
|
||||
)}
|
||||
</AnimatedBaseContainer>
|
||||
);
|
||||
|
||||
@@ -38,7 +38,7 @@ export const BaseOutline = styled(BaseShape)<TransitionProps>`
|
||||
? "2px solid #ffffff00"
|
||||
: "5px solid #ffffffff"};
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
BaseOutline.displayName = "BaseOutline";
|
||||
|
||||
@@ -48,7 +48,7 @@ export const BaseBlack = styled(BaseShape)<TransitionProps>`
|
||||
|
||||
background-color: black;
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
BaseBlack.displayName = "BaseBlack";
|
||||
|
||||
@@ -61,7 +61,7 @@ export const BaseBackgroundColor = styled(BaseShape)<BaseBackgroundColorProps &
|
||||
background-color: ${({ teamColor }) => teamColor};
|
||||
opacity: ${({ open }) => open ? 0 : 1};
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
BaseBackgroundColor.displayName = "BaseBackgroundColor";
|
||||
|
||||
@@ -77,9 +77,9 @@ export const BaseLayout = styled(BaseShape)<TransitionProps>`
|
||||
|
||||
clip-path: ${({ open }) => open
|
||||
? "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 = {
|
||||
@@ -98,7 +98,7 @@ export const TeamColorBar = styled.div<TeamColorBarProps & TransitionProps>`
|
||||
|
||||
outline: ${({ color }) => color} solid 1px;
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
TeamColorBar.displayName = "TeamColorBar";
|
||||
|
||||
@@ -196,16 +196,19 @@ export const FlagContainer = styled.div<FlagContainerProps & TransitionProps>`
|
||||
|
||||
opacity: ${({ open }) => open ? 1 : 0};
|
||||
|
||||
${({ transitionProps }) => commonTransition(transitionProps)};
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
FlagContainer.displayName = "FlagContainer";
|
||||
|
||||
type DriverPortraitContainerProps = {
|
||||
type DriverPortraitContainerProps = TransitionProps & {
|
||||
placement: Placement,
|
||||
};
|
||||
export const DriverPortraitContainer = styled.div<DriverPortraitContainerProps>`
|
||||
position: absolute;
|
||||
|
||||
${({ placement }) => placementStyleRules(placement)}
|
||||
|
||||
opacity: ${({ open }) => open ? 1 : 0};
|
||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||
`;
|
||||
DriverPortraitContainer.displayName = "DriverPortraitContainer";
|
||||
@@ -13,6 +13,7 @@ export const workspaces: WorkspaceObject = {
|
||||
"chyron-driver-medium-full-vet.png",
|
||||
"chyron-driver-medium-full-per.png",
|
||||
"chyron-driver-medium-full-msc.png",
|
||||
"chyron-driver-medium-op0-ham.png",
|
||||
"chyron-driver-medium-op1-ham.png",
|
||||
"chyron-driver-medium-op2-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