Interactive online courses HTML Academy
2026-03-09 10:53 Diff

You can achieve quite a few interesting effects using transforms when implementing various interface items, such as a button, for example. You can add some movement to them using transform together with transition, which will create a very simple floating animation.

In the next few examples, we will create effects that are triggered on hover. In all of the cases, we will use the transition property to ensure a smooth transition between the transform and transparency values. We will cover the topic of smooth transitions in detail in upcoming courses.

In this assignment, when we hover over the button, let’s dynamically wrap the icon around its axis and increase its size slightly at the same time.