hugo-profile icon indicating copy to clipboard operation
hugo-profile copied to clipboard

Added animation toggle option

Open NishantTharani opened this issue 3 years ago • 0 comments

Hi, I added a toggle option in the config file which toggles whether the fading animations (enabled by default) should be applied on the home page or not.

How it works: I changed index.css so that the animation properties are only applied to elements that also have the class .animate. Then in the template files, I conditionally applied the .animate class to the animated elements only if the config option is enabled. Also, I set the social media icons to have display: block by default if the animate option is disabled, so there is no delay before they appear.

NishantTharani avatar Sep 17 '22 21:09 NishantTharani