You have to first pick the element, and then quickly tap on the attack button and that's it! And also you have to click the green flag 2 times or it will not work.
Thanks to the other games about elements because it inspired me.