The breaking animation is rendered behind water and nether portals, instead of in front of them.
MC-161926 Breaking animation is more transparent when mining ice or stained glass
MC-161894 Hitboxes render behind portals, water and shulker boxes