Let $\Omega_1$, $\Omega_2$ be bounded,convex, open domains with smooth boundary in $\mathbb{R}^2$ and $\overline\Omega_1\subset\Omega_2$. Suppose we are given a $C^1$ function $f:\overline\Omega_1\cup(\mathbb{R}^2\setminus\Omega_2)\rightarrow\mathbb{R}$ satisfies the following properties:
(1)$f\equiv 1$ on $\partial\Omega_1$ and $f\equiv 0$ on $\partial\Omega_2$.
(2)$\nabla f\cdot \nu_k< 0$ on $\partial\Omega_k$, where $\nu_k$ is the unit outward normal vector to $\Omega_k$, ($k=1,2$).
Now the question is that can we extend $f$ to be $C^1$ in $\mathbb{R}^2$ such that $0\leq f\leq 1$ and $|\nabla f|\neq 0$ in $\Omega_2\setminus\overline\Omega_1$?
I think the answer must be yes because I can imagine its figure as a frustum of a cone. I have read some references about the Whitney's extension theorem but they do not match. I would be very appreciate if anyone can provide the proof or references.