TypeError: $ is not a function Error using parallax effect in WordPress Template [duplicate]

Use jQuery instead of $.
e.g use jQuery(‘.parallax’) instead of $(‘.parallax’).