-1

I had applied an animation transition to svg element

.taskElement>rect{
    transition: 0.15s;
    transition-timing-function: ease;
}

but if I want to apply one style of the same animation transition to many elements, like this:

.projectElement>rect .taskElement>rect{
    transition: 0.15s;
    transition-timing-function: ease;
}

it won't work.

emilll
  • 85
  • 6

1 Answers1

1

You need to specify multiple selectors by ,, not spaces:

.projectElement>rect, .taskElement>rect{
    transition: 0.15s;
    transition-timing-function: ease;
}
Hao Wu
  • 14,894
  • 4
  • 17
  • 48