Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Scaling CollectionView cells as user scrolls so they appear to hover when centred

$
0
0

I have a horizontal collection view that is displaying cards that snap to centre as you scroll through items. I want to animate a couple properties on the item that becomes the middle item, the one that snaps to centre, to enlarge it and make it hover more. I want to:

  • Scale it up as it moves towards centre, and down to original size as it move away from centre.
  • Increase the elevation of my card so it appears to hover more as it move towards centre. Decrease elevation to normal as it moves away.

Is this possible without using a custom renderer? How can I implement this? (Note: The elevation property exists on a renderer within the DataTemplate already)


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>