Can't you adapt what they have given? It's true that most tutorials don't give you code that will directly solve your problem, the idea is that you take that code, understand it and modify it to produce the effect you want.