Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help me convert these CSS3 transitions to LESS? Re: Help me convert these CSS3 transitions to LESS?

#121280
Zoom
Participant

You should probably use a mixin to do this. Also you should probably apply the transition on the a, li etc, and not on the :hover, so the transition will be smooth when you hover over and out of the element. Example: http://codepen.io/TheoL/pen/AeKhw

There are mixin libraries that already have a lot of these mixins for you, such as clearless http://clearleft.github.com/clearless/ , but unfortunately it seems that no less mixin library is as good as compass for sass.