CSS CSS Transitions and Transforms Transition Timing Functions and Delays Timing Functions and Delays Challenge

blake littleton
blake littleton
14,255 Points

Flex-grow property shorthand question

I'm having trouble with this question. I used the shorthand method but im still getting an error. Im not sure what I'm doing wrong.

/* nav-item transitions ---------- */

.nav-item {
 flex-grow: 1;
 transition:flex-grow .5s;

.nav-item:hover {
    flex-grow: 2;

/* nav icon transitions ---------- */

.icon {
  right: -25px;

.nav-item:hover .icon {
    right: 12%;
<!DOCTYPE html>
    <title>CSS Transitions</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
    <div class="container">

        <nav class="nav">
            <a class="nav-item" href="#">About <i class="icon material-icons">person</i></a>
            <a class="nav-item" href="#">Work <i class="icon material-icons">work</i></a>


I'm using the same code as you and having the same problem. Did you solve eventually solve this?

1 Answer

You missed the space: transition:flex-grow .5s;

Should be transition: flex-grow .5s;