Parallax Websites

Our first exercise was based on parallax websites and fixed elements when scrolling throughout a website page. This is usually used to tell a story within web design. The initial set up was simple; we created an additional elementor page and named it ‘Parallax Exercise’ and downloaded some sample files to work with. We began with creating a single column section and changed the colours to a gradient that fits the entire screen. We added a heading section into this named ‘Parallax Exercise’ and altered the layout and style until happy.

Figure 1 – A screenshot taken from the elementor page ‘Parallax Exercise’ with a heading and a background colour.

The next stage was to create another single column section below the previous one and changing the background to one of the presaved images. In this case, we wanted to create a background and add additional elements over the top of this. A space scene was imported and set using a fixed attachment style. This allows the image to remain anchored as the user scrolls throughout the rest of the page.

Figure 2 – A screenshot demonstrating a fixed image background that sets the scene for our upcoming parallax experiment.

We then added an example heading on top of the current section and changed the attachment type to absolute. This enabled us to move the position of the heading around the image and can be placed at any point chosen. This means that the heading will move with the scroll like conventional web design.

Figure 3 – The settings exploring the absolute heading so that we can free-hand and alter the position to be central in the image.

Now we needed to add further elements into the section to emphasise the parallax effect. Using the background overlay option, we were able to import a spaceman transparent above the space background image. This gives the effect that the astronaut is floating on the image. We ensured this was fixed in place to once again remain anchored. We further added an additional image of a UFO to create this story environment with separate components. This was made the absolute attachment style in order to resize and adjust its placement in the background. Once we were happy with the positioning, the option to animate it flying on the screen was enabled. I decided to have it fly in from the left to emphasise some additional movement when scrolling.

Figure 4 – A screenshot taken from the step where we imported an additional image into the section which was positioned as an absolute. We also added animation to the spaceship so this flies in from the left hand side of the screen.

A simple stage was to add in a solid colour section underneath the above imagery. I tried to relate the colour to the previous gradient so that symmetry was key. Including this allowed a break in the site and the next image we were about to edit.

Figure 5 – The next stage was to add in a solid colour band so this breaks apart the first and second image block that we were about to embed.

Following one of the first image steps, we imported a skyline image to a single column section and ensured this remained a fixed attachment type. Using a heading widget, we created a line of copy to import over the top and made this absolute to move more central. This solidifies the knowledge we have of importing images into elementor and making them parallax.

Figure 6 – The final section of the parallax screen where we added in another fixed image with absolute text so this separates the two fixed images when scrolling on the screen.

As you can clearly see, once I had practice the method, I revisited the images and used my own colours to make the screen seem more professional than above.

Figure 7 – A video exploring the final design and the creation of a simple parallax site using elementor. I ended up changing and exploring different images and colours in the final presentation of the site.

The second exercise made us aware of layering three images together and allowing them to move at different speeds to follow the user’s mouse. The example we followed was some code from the codepen site which related back to previous exercise work. It makes use of three separate images positioned on top of each other and as the mouse moves over each layer, they follow at different speeds. We weren’t given any instructions on how to complete this task which exercised our HTML knowledge on how to import code into the widget on elementor. The below screenshot shows the code we used.

Figure 8 – The initial code from the website codepen that allows us to import this into our HTML widget on elementor. https://codepen.io/oscicen/pen/zyJeJw

I remembered that we had to initially start off by importing the CSS. This was simple to copy and past into the widget and wrapping it with ‘<style>’. Once this was added, we needed to include the HTML below. This step was simple enough to just copy and paste was codepen had provided. The final part was to add the JavaScript. After this was pasted, I wrapped it with ‘<script>’ and updated the widget to show the final result. The code was successful and matched the example we were given.

Figure 9 – A screenshot exploring the code placed onto the HTML widget and also into my overall elementor site.

The final style step I chose to add was changing the background colour to emphasise the shattered glass images and make the text visible. I found this exercise simple when the code was given and also intriguing as to how I could potentially use this in my final portfolio site. You can see the final element in the video below.

Figure 10 – A final video exploring the parallax using mouse movement at the bottom of the elementor site. This has been created using HTML widgets and JavaScript code.

The final task of the session was to individually put all of our knowledge to the test and create a FairTrade website that represented some parallax elements. I wanted to mainly focus on providing information on FairTrade products but ensuring the parallax design is priority. I stuck to using the first task’s settings in order to allow for 2 fixed images on the screen which allowed a simple aesthetic. The aim was to not focus on the information but more on exploring the design effects and practicing elementor’s widget settings. I feel as though this was successful and I hope to include examples of parallax in my final campaign design.

Figure 11 – A short video demonstrating my own parallax website design exploring FairTrade products in a creative way. This emphasises my knowledge on the above activities.