There's no simple "do this, then do this" solution. It's pretty much a matter of "learn enough Javascript, PHP and CSS to be able to do it" or hire someone who can. Having learned enough to be able to do something like that is why programmers get paid a lot of money.