2D transformations modify elements on a flat plane, affecting height and width, while 3D transformations add depth, allowing elements to move along the z-axis.