$f$ is 1-1 as $x \neq y$ implies $ | f(x) - f(y) | \geq | x - y | > 0.$
Any 1-1 continuous function from R to R is strictly monotonic (*).
If $f$ is strictly increasing then for any $ x, y $ with $ x > y $, $f(x) \geq f(y) + (x - y) $, keeping $y$ fixed and letting $x$ tend into $\infty$, we have $ \lim_{x \to \infty} f(x) = \infty $, and keeping $x$ fixed and letting $y$ tend to $-\infty$ we get $ \lim_{y \to -\infty} f(y) = -\infty.$ Hence $f$ is surjective. For strictly decreasing $f$ redo the argument with $-f$ instead of $f$.
(*) For completeness:
Let $f$ mapping reals to reals be continuous and 1-1, then $ g(x,y) = ( x - y ) ( f(x) - f(y) ) $ maps the connected set $ \{ (x,y) : x > y \}$ to a connected subset of $ \mathbb{R} - \{0\}$, hence the image of g lies in $(0,\infty) $ in which case f is strictly increasing, or it lies $(-\infty,0)$ in which case $f$ is strictly decreasing.