Hello Mohinder,

Exist js library and you can try to create it yourself: https://github.com/ain/smartbanner.js
But if you want us to do it I suggest you create new ticket with the request.