5

I'm trying to get both a north and south fading direction here:

\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{tikz}
\usetikzlibrary{fadings}


\setbeamertemplate{background}{%
\begin{tikzpicture}
\path (0,0) rectangle (\paperwidth,\paperheight);
\node[scope fading=north,inner sep=0pt,outer sep=0pt,anchor=north east] at(\paperwidth,\paperheight) {\includegraphics[height=\paperheight]{frog.jpg}};
\end{tikzpicture}
}

\author{Kermit}
\title{Autobiography}
\begin{document}
\maketitle

\end{document}
4

Here is some dirty way:

\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{tikz}
\usetikzlibrary{fadings}

\setbeamertemplate{background}{%
\begin{tikzpicture}
\path (0,0) rectangle (\paperwidth,\paperheight);
\begin{scope}
\clip (0,0.5\paperheight) rectangle (\paperwidth,\paperheight);
\path[scope fading=north,] (0,0.5\paperheight) rectangle (\paperwidth,\paperheight);
\node[inner sep=0pt,outer sep=0pt,anchor=north east] at(\paperwidth,\paperheight) {\includegraphics[height=\paperheight]{example-image-a}};
\end{scope}
\begin{scope}
\clip (0,0) rectangle ([yshift=-0.5\pgflinewidth]\paperwidth,0.5\paperheight);
\path[scope fading=south,] (0,0.5\paperheight) rectangle (\paperwidth,0);
\node[inner sep=0pt,outer sep=0pt,anchor=north east] at(\paperwidth,\paperheight) {\includegraphics[height=\paperheight]{example-image-a}};
\end{scope}
\end{tikzpicture}
}

\author{Kermit}
\title{Autobiography}
\begin{document}
\maketitle
\begin{frame}
  Me here
\end{frame}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.