If you hold the iPad a certain way (especially in landscape), your hand can cover the light sensor. This causes the iPad to think you are in complete darkness and the display will dim accordingly. Then, if you move your hand, it will increase in brightness as it sees you are now in a lit area.