
You can build any animations related to a device’s movement. This sensor detects motion and orientation of the mobile devices. While tilting the device, the animation will scroll accordingly.įor that you just need to add a Motion sensor.
#PARALLAX BACKGROUND ANDROID#
If you are building for iOS or Android device, you might want to use the accelerometer to control this animation. Create another scrolling area which is vertical, place the birds inside and add it to the existing synchronization group. Let’s add birds that are moving from up to down. You can add any other elements to this effect. Just add the image in the screen, no need to place it inside a scrolling area. To enhance this effect, let’s insert a bike that will remain static. Here we’re gonna synchronize the position of the scrolling areas together.Īdd a Synchronization component and in the properties, add the two scrolling areas. Synchronization is a global concept in PandaSuite Studio: you can synchronize all components together and choose the properties you want to synchronize: position, time, orientation. Now clouds are behind buildings but we cannot make them scroll as the other scrolling area is taking the control. Let’s position them behind the building by putting them below the building in the list of objects. When previewing the animation, we can see the scrolling areas are independent and clouds are placed above the buildings. Let's add the cloud images inside, put more than one to get a continuous effect and use the scroll bar to move inside the area.

I choose a smaller width than 2788px so that the clouds move slowly than the building. The widest area is the one that will scroll the fastest. Be careful at the width: the 2 scrolling areas must have different sizes, this is what will define the Parallax effect. In the properties, let’s keep the same properties as the other component.
#PARALLAX BACKGROUND FULL#
Stretch it to the width of the screen but no need to make it in full screen : the clouds will only be displayed above the buildings. Now let’s add another scrolling area and position it at the top of the screen. You can view the scrolling building from the studio and from the preview.Įxit the first scrolling area and go back to the Screen level. The width of the scrolling is now 2788px.Īlso keep user scrolling but hide scrollbar and remove bounce effect. The width is automatically calculated according to its content, which means according to the width of the background image. In the Properties window, click on Horizontal and for the width, click on the Adjust button. Unselect the image to select the scrolling area component. Let’s adjust the scrolling area width to display the full width. This image is wider than the screen width. Adjust the height to make it full screen. Let’s add a first scrolling area and make it full screen using the Stretch options in the properties.Ĭlick on the arrow to enter inside and edit its content. Let’s start by defining a background color for the blue sky.
#PARALLAX BACKGROUND HOW TO#
At the end of the video I’m gonna show you how to use the accelerometer for this effect so that it’s scrolling while tilting an iOS or Android mobile device. Let’s focus how to build this bike animation. You can create Parallax scrolling that is horizontal or vertical. One for the background images and one for the foreground. To create a Parallax effect in PandaSuite, you need to synchronize together at least 2 scrolling area components. In this video, let’s see how to create a Parallax animation in just a few clicks and without any coding.

It is a technique where background images move more slowly than foreground images Parallax scrolling was a major trend a few years ago in web design and it is still really useful to bring dynamism to your presentations, landing pages, games or mobile apps. create many scrolling areas and configure them together.Parallax scrolling was a major trend a few years ago in web design and it is still really useful to bring dynamism to your presentations, landing pages, games or mobile apps. It is a technique where background images move more slowly than foreground images. Create Parallax Animation / Parallax Scrolling with Accelerometer
