I have a tblr table in which I would like to highlight some cells gradually and for each one, when it is highlighted some related stuff is displayed below the table.
Here in my MWE, I reproduced the entire table for each \only command, each time highlighting what I want to highlight.
What I want is something like this:
\only<1>{
\begin {tblr}{colspec={l},cell{1}{1}={fg=purple}}}
\only<2>{
\begin {tblr}{colspec={l},cell{2}{1}={fg=purple}}}
\only<1->{
\begin {tblr}{colspec={l},cell{3}{1}={fg=purple}}}
pays d'europe\\
pays d'asie\\
pays d'afrique\\
\end {tblr}
The best would be that tabularray supports this feature.
I have found a solution is another post, but that user uses tabular. I did not get it work for tblr
\documentclass[aspectratio=169,t]{beamer}
\mode<presentation>
\usetheme{moloch}
\usepackage{tabularray,blindtext,tikz}
\UseTblrLibrary{tikz}
\SetTblrInner{rowsep={2pt}}
\newcommand{\titles}[1]{{\centering\bfseries #1\par\vspace{.6em}}}
\newcommand{\purp}[1]{\textcolor{purple}{#1}}
\newcommand{\mage}[1]{\textcolor{magenta}{#1}}
\begin{document}
\begin{frame}{aaa}
\centering
\only<1>{
\begin {tblr}{l}
\purp{pays d'europe}\\
pays d'asie\\
pays d'afrique\\
\end {tblr}
}
\only<2>{
\begin {tblr}{l}
pays d'europe\\
\purp{pays d'asie}\\
pays d'afrique\\
\end {tblr}
}
\only<3>{
\begin {tblr}{l}
pays d'europe\\
pays d'asie\\
\purp{pays d'afrique}\\
\end {tblr}
}
\vspace{5\parskip}
\only<1>{
allemagne,france,espagne}
\only<2>{chine, inde, birmanie}
\only<3>{mali, cameroun, sénégal}
\end{frame}
\end{document}
