You shouldn't animate "left". Use "transform: translateX()" instead and "transition: transform"
You set every size with pixels. If you decide to change sidebar width at some point you have to also change other values every time. Otherwise your design will brake. Use % whenever possible.
Try not to use id as selectors to avoid high specificity. Use classes instead.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Many flaws in your code: