better positioning of hero animation
This commit is contained in:
		@@ -47,7 +47,7 @@ class Animation extends React.PureComponent<AnimationProps, AnimationState> {
 | 
				
			|||||||
        const windowWidth = window.innerWidth;
 | 
					        const windowWidth = window.innerWidth;
 | 
				
			||||||
        let width = undefined;
 | 
					        let width = undefined;
 | 
				
			||||||
        let height = undefined;
 | 
					        let height = undefined;
 | 
				
			||||||
        if (windowWidth < 1200) {
 | 
					        if (windowWidth <= 1000) {
 | 
				
			||||||
            const maxWidth = windowWidth + 250;
 | 
					            const maxWidth = windowWidth + 250;
 | 
				
			||||||
            const ratio = maxWidth / this.props.width;
 | 
					            const ratio = maxWidth / this.props.width;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -89,9 +89,9 @@ const Container = styled.div`
 | 
				
			|||||||
    left: 0;
 | 
					    left: 0;
 | 
				
			||||||
    z-index: -1;
 | 
					    z-index: -1;
 | 
				
			||||||
    overflow: hidden;
 | 
					    overflow: hidden;
 | 
				
			||||||
    ${media.medium`
 | 
					    ${media.large`
 | 
				
			||||||
        top: auto;
 | 
					        top: 100%;
 | 
				
			||||||
        bottom: -3rem;
 | 
					        transform: translateY(-50%);
 | 
				
			||||||
    `};
 | 
					    `};
 | 
				
			||||||
`;
 | 
					`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user