title: How to add a transition to a StackLayout in QML?
body: <p>I would like to have a GUI like the <a href="https://doc.qt.io/qt-5/qml-qtquick-controls2-tabbar.html" rel="nofollow noreferrer">TabBar example in the Qt docs</a>:</p>
  
  <p><a href="https://i.stack.imgur.com/kqmlq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqmlq.png" alt="enter image description here"></a></p>
  
  <p>If I use a SwipeView, there's a transition (content moves left or right) when moving between the pages. With a StackLayout the change is immediate.</p>
  
  <p>I would like to crossfade between the pages. How would I do this with a StackLayout? Is this even possible or do I need to write my own container element?</p>