CSS performance - how to evaluate - animation (transition) of floating button size on scroll (transform scale vs height/width)
问题 Introductory information: I've made a fixed menu button to show the navigation menu when using a mobile device. For this application I'm using the Headroom.js script to make the button smaller when scrolling downwards to ensure that it doesn't block too much of the content. The animation/transition is applied by adding a class with the given changes. In the original method i changed the size and look of the button by changing height/width of the parent element and padding of the child element