Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two transitions at once

In this discussion some great pointers were given. Now, i'd like to use not only

-webkit-transition: border-radius 0.5s;

but also

-webkit-transition: background-color 0.5s;

and then go

div.menuItem:hover {
  border-radius: 145px 85px 145px 85px;
  background-color: #000000;
}

When i only do one transition at a time, it works fine but i don't know how to combine those.

like image 990
Konrad Viltersten Avatar asked Dec 12 '22 00:12

Konrad Viltersten


1 Answers

Separate them by a comma.

-webkit-transition: background-color 0.5s, border-radius 0.5s;

Demo: =)

like image 135
Nathanael Avatar answered Jan 03 '23 22:01

Nathanael