Optical device, and preferably a security device for a security document, and methods for the production thereof, the device including a diffractive optical element (DOE) including a plurality of subregions, wherein each subregion is configured to produce a projected image corresponding to a frame of an animation, wherein the animation includes both a static component and a variable component, and wherein the sub-regions are arranged such that when the DOE is illuminated by a point light source and moved in at least one direction, the animation is viewable as a projected image.