I was wondering if it is possible to animate a logo between different sizes like this on window resize
so when the window is resized to a smaller window, the logo animates to a smaller variant and vice versa.
i am not really interested in the animation, but more on how to combine the window resize with the animation.
I know that there is a javascript onresize Event and that its possible to animate a logo using javascript.
I dont know wether its best to animate in JS or CSS.
i'm trying to do it with just html, css and javascript.
What you are trying to achieve is a little unclear in your post. To identify the varying window resizes you can choose the following css code based of the resolution of varying devices.
According to your post, you wanted to animate a logo. To this accordingly, put the animation of the logo inside one of the css resolution restrictions.
The following code was taken from: https://www.w3schools.com/css/css_rwd_mediaqueries.asp
If you want more information on window resizing click on the link above.
Hopefully this helps.