You first have to enable the feature: open the camera app, swipe right to open the options "wheel" spin it to the bottom and click the hand/camera icon if necessary (it should have a blue "underline"). Then when phone is sleeping/locked give it two quick, sharp shakes to open the camera.