I have two images drawn in TikZ that I want shown one element at a time. Specifically, I want the circle on the left first, then the ellipses around it. Then I want the circle on the right followed by the ellipses around it. I tried using \pause, \only, \visible, and whatever else I could find only, but I can't get it working (I get compilation errors with all above commands).
\documentclass{beamer}
\mode<presentation>
{
% \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ...
% \usecolortheme{default} % or try albatross, beaver, crane, ...
% \usefonttheme{default} % or try serif, structurebold, ...
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{verbatim}
\usepackage{tikz}
\usetikzlibrary{arrows, arrows.meta,
backgrounds,
calc,
decorations.pathmorphing,
patterns, positioning,
quotes,
shapes,
tikzmark
}
%\tikzstyle{every picture}+=[remember picture, overlay]
\usetikzlibrary{overlay-beamer-styles}
\usepackage{tcolorbox}
\tcbuselibrary{raster}
\tcbuselibrary{theorems}
\usepackage{makecell} %for the thead command to break up header
%\usepackage{fourier,erewhon}
%\usepackage{amssymb, amsbsy}
\usepackage{array, booktabs, longtable}
\usepackage{graphicx}
%\usepackage[x11names, table]{xcolor}
\usepackage{caption}
%% start
\begin{document}
\section{Problem Setup, History, \& Our Result: A Snapshot}
\begin{frame}[t]{Def}
\newtcbtheorem[number within = section]{mydef}{Problem Statement}{colback=orange!20, colframe=blue!25}{ps}
\tcbset{colframe=red!75!black, colback=yellow!25!white}
\begin{mydef}{Definition}{probStatement}
Given stuff, prove:
\begin{equation*}
\tcboxmath[colframe=red!75!black, colback=yellow!25!white]
{a + b = c}
\end{equation*}
\end{mydef}
\begin{tikzpicture}
\coordinate (c) at (2.2, -0.2);
\draw[black, thick](c) circle (50 pt);
\draw[black, fill = green!10, rotate = 50, opacity = 0.25] (c) ellipse (60 pt and 10 pt);
\draw[black, fill = red!10, rotate = 30, opacity = 0.25] (c) ellipse (20 pt and 10 pt);
\draw[black, fill = blue!10, rotate = 100, opacity = 0.25] (c) ellipse (25 pt and 45 pt);
\draw[black, fill = teal!20, rotate = 110, opacity = 0.25] (c) ellipse (35 pt and 70 pt);
\draw[black, fill = magenta!30, rotate = 240, opacity = 0.25] (c) ellipse (45 pt and 65 pt);
\coordinate (cCovering) at (8.5, -0.2);
\draw[black, thick](cCovering) circle (50 pt);
\draw[black, fill = red!10, rotate = 30, opacity = 0.25] (cCovering) ellipse (20 pt and 10 pt);
\draw[black, fill = blue!10, rotate = 100, opacity = 0.25] (cCovering) ellipse (25 pt and 45 pt);
\draw[black, fill = green!10, rotate = 50, opacity = 0.25] (cCovering) ellipse (10 pt and 30 pt);
\draw[black, fill = teal!20, rotate = 50, opacity = 0.25] (cCovering) ellipse (75 pt and 20 pt);
\draw[black, fill = gray!30, rotate = 280, opacity = 0.25] (cCovering) ellipse (45 pt and 65 pt);
\end{tikzpicture}
\end{frame}
\end{document}


#1and so on in a beamer frame with breaks. These definitions are hidden in\newtcbtheorem. One can allow for them by making the framefragile, but it is arguably simpler/better to move them out. As for 2, good catch, my bad, we needreset counter on overlays. – May 17 '20 at 06:20reset counter on overlayskey is part of the newer versions oftcolorbox. It has has been added after this thread, see this issue. ;-) – May 17 '20 at 18:52