it is pretty simple to code. there are a couple of ways to do it.
have a look at this topic
you will need to enable velo