S
S
Stanislav Ponomarev2020-02-09 09:54:13
css
Stanislav Ponomarev, 2020-02-09 09:54:13

What is better mix or modifier?

Good day to all! Tell me what is better for me to make a mix or modifier. There are 10 links on the site. They are with different classes. I need to make it effect on hover. So, set opacity for each link or make one general mix, or maybe a modifier to set opacity for everyone at once?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Batalov, 2020-02-09
@Chelentano93

Make a link class for everyone with a common set of parameters, a common hover with opacity to it, and hang all changes in links around the site on elements such as header__link. If you need to manage through a modifier, then link_hover. Those. example class="header_link link link_hover"

I
Ilya Muromtsev, 2020-02-09
@sfrancisco

You can just add a class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question