Jump to content
  • 0

Эффект постепенного осветления фона меню


Delat
 Share

Question

Как сделать, чтобы при наведении курсора на главное меню, более светлый красный цвет появлялся не мгновенно, а постепенно, с не большой задержкой?

http://prodpak.ru

(Мне кажется нужно использовать: псевдоэлемиенты + z-index + JS )

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

.menu LI:hover {
background: #E51E10;
transition-property: color;
transition-duration: .5s, .5s;
transition-timing-function: linear, ease-in;
-webkit-transition-property: color;
-webkit-transition-duration: .5s, .5s;
-webkit-transition-timing-function: linear, ease-in;
}

Edited by zlodeev
Link to comment
Share on other sites

  • 0


.menu LI:hover {
background: #E51E10;
transition-property: color;
transition-duration: .5s, .5s;
transition-timing-function: linear, ease-in;
-webkit-transition-property: color;
-webkit-transition-duration: .5s, .5s;
-webkit-transition-timing-function: linear, ease-in;
}

добавил в свойство transition-property: background-color, color; значение background-color и всё заработало, но в IE9.0.8 не работает.

А как делают чтобы было кроссбраузерно?

Link to comment
Share on other sites

  • 0


.menu LI:hover {
background: #E51E10;
transition-property: color;
transition-duration: .5s, .5s;
transition-timing-function: linear, ease-in;
-webkit-transition-property: color;
-webkit-transition-duration: .5s, .5s;
-webkit-transition-timing-function: linear, ease-in;
}

добавил в свойство transition-property: background-color, color; значение background-color и всё заработало, но в IE9.0.8 не работает.

А как делают чтобы было кроссбраузерно?

Пускай деградирует без анимации

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy