Animate transitions

This commit is contained in:
Rene Saarsoo 2020-10-01 23:47:18 +03:00
parent 24b9804c29
commit 8bd052f3a8
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ const Bar = styled.div<BarProps>`
padding-bottom: ${(props) => props.height}; padding-bottom: ${(props) => props.height};
background: ${(props) => props.background}; background: ${(props) => props.background};
width: ${(props) => props.width}; width: ${(props) => props.width};
transition: width 0.1s, padding-bottom 0.1s, background-color 0.1s;
`; `;
const zoneColor = (intensity: Intensity | IntensityRange | FreeIntensity): string => { const zoneColor = (intensity: Intensity | IntensityRange | FreeIntensity): string => {