Trying to create an xray cursor effect

Hi, I’m trying to create an effect like this, but I’m having some trouble. Does anyone know how do to it? Thanks