If each f_x is contractible, it is not difficult at all to see that \tilde {f} is also contractible. Going the other direction requires a bit more sophistication.
In particular, we consider fibres of \tilde {f}:{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(x:A)}}{B[x]}\to {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(x:A)}}{C[x]}. Given a:A and c:C[a], we have the following sequence of equivalences:
\begin {aligned}
&\mathsf {fib}_{\tilde {f}}\left \langle a,c\right \rangle
\\
&
\xrightarrow {(1)}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(w:
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(x:A)}}{B[x]}
)}}
\tilde {f}w =_{{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(x:A)}}{C[x]}} \left \langle a,c\right \rangle
\\
&
\xrightarrow {(2)}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(a':A)}}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(b:B[a'])}}
\left \langle a',f_{a'}b\right \rangle =_{{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(x:A)}}{C[x]}}
\left \langle a,c\right \rangle
\\
&
\xrightarrow {(3)}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(a':A)}}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(b:B[a'])}}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(p:a'=_Aa)}}
p_*^C(f_{a'}b) =_{C[a]} c
\\
&
\xrightarrow {(4)}
{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum }
}_{(b:B[a])}}
f_{a}b =_{C[a]}c
\\
&
\xrightarrow {(5)}
\mathsf {fib}_{f_a}c
\end {aligned}
Above:
Therefore, it follows that the fibres of \bar {f} are equivalent to fibres of some f_a; as the latter are contractible, so are the former.