How to implement mouse sliding in Bricks and a certain element of the page to move horizontally

How to implement mouse sliding in Bricks and a certain element of the page to move horizontally