Parallax Effect in Xamarin cross platforms

AswathiPSAswathiPS USMember ✭✭

am using xamarin forms(C# or Xaml), i want to add the effect of parallaxing in my pages . Thanks in advance

Posts

  • Jorge.Garcia.CPJorge.Garcia.CP ESMember ✭✭

    Hello AswathiPS,
    The Parallax effect is basically a visual effect produced by the automatic movement of an element when the page is scrolled. A way to implement this effect is creating a Scrolled event for your scroll view in which we will be able to implement the logic of how to move an element.

    You can take a look at this example of jsuarezruiz:
    https://github.com/jsuarezruiz/xamarin-forms-netflix-sample/blob/master/src/Xamarin.Netflix/Xamarin.Netflix/Views/DetailView.xaml.cs

    OnParallaxScrollScrolled method is implemented a parallax effect for the HeaderPanel.

    I hope this helps you.

  • AswathiPSAswathiPS USMember ✭✭

    Hello Jorge.Garcia.CP

    Thank's for your quick replay. is it work on android 4 version and above ?

  • Jorge.Garcia.CPJorge.Garcia.CP ESMember ✭✭

    @AswathiPS said:
    Hello Jorge.Garcia.CP

    Thank's for your quick replay. is it work on android 4 version and above ?

    The project that I shared with you is configured to work on Android sdk 15 (4.0.3) and above, if you use a previous sdk the parallax metod should be work but maybe another function of the project does not let you compile it.

  • AswathiPSAswathiPS USMember ✭✭

    @Jorge.Garcia.CP
    Thank's .Its work for me

Sign In or Register to comment.