I claim the ornamental design for a display screen or portion thereof with an animated graphical user interface, as shown and described.
FIG. 1 is a front view of a first image in a sequence for a display screen or portion thereof with an animated graphical user interface showing the new design;
FIG. 2 is a front view of a second image thereof; and,
FIG. 3 is a front view of a third image thereof.
The broken lines shown in the figures represent portions of the display screen or portion thereof with an animated graphical user interface that form no part of the claimed design.
The appearance of the transitional image sequentially transitions between the images shown in FIGS. 1-3. The process or period in which one image transitions to another forms no part of the claimed design.