QuestionQ42

VerifiedAdobe Experience Manager Sites

An Adobe Commerce developer has found the following code:

Question Image

After the .less file is compiled into a .css file, what will be the result of the code above?

Explanation

A LESS ruleset can be invoked as a mixin. Calling .animation(); inside .block copies the transition declarations into .block, while the original .animation ruleset is also emitted as its own CSS selector. The compiled .block rule therefore contains the transition declarations followed by width: 100%;.

Community Discussion

No comments yet. Be the first to start the discussion!