Hello,
You can use HTML with the necessary data attributes and classes to implement ajax add to cart button for the simple products http://prntscr.com/rrin3w
But unfortunately, it won’t work for the variable products because you need to choose variations there.
Regards