Invert Text Over A Background Or Image
hi guys in this Tutorial I’m going to show you how to invert your text as you scroll over images and backgrounds in Elementor it’s extremely easy to do because I’ve done all the hard work for you so don’t forget to hit that like And subscribe button and let’s get into the Tutorial.
Okay guys the first thing we’re going to do is set up our page and to do that I’m simply going to drag in a heading widget and I’m going to add our text I’ve already copied the text that I want to add into this box so I’m going to right click and paste it in the next thing I’m going to do is add a column underneath and in this column I’m going to drag in a spacer.
Now how you use this is totally up to you I’m just trying to make sure you get the full impact of what you can do with this bit of code you might not want this to be a column with a spacer you might want it just to be another section on your page so now I’m going to add the column and drop in a spacing widget I’m also going to set its height on the left hand side.
Once that’s done I’m going to duplicate this column and to do that you right click in the left hand side of the column and click on duplicate for the purpose of this video I am going to make lots of duplicates and the reason why I’m doing that is because I want to show you that the text colour will change with each column each column is going to have its own background colour and as scroll down the page the text will change colour over each one.
Now I am going to be showing you how to make the text sticky to top you don’t have to do this you could just have a multi-coloured background and instead of having spaces you could have the text fixed across that background and just adjust the padding of the text now all that’s done I’m going to add a second section with an image now I should have picked a section with two columns but I actually only picked the one.
So like before I’m going to click in the top left hand side of the column and click on duplicate and it’s in this First Column I’m going to add an image widget and this image is going to be black and white so I’m going to click the add image button and select the piano keys and click on insert like I said before this could be the hero image of your page or you could have this set as a background.
Before I show you how to make the section sticky I’m going to add a spacing widget and I do that by clicking on the menu Widget icon in the top left hand side and selecting the spacer and dragging it in a above our text now we’re going to make this section sticky and we do that by clicking on the edit section button clicking on the advanced tab then clicking on motion effects and mix to where it says sticky.
Click on the drop down menu and select top as you can see if we scroll down the page our heading sticks what we’re now going to do is add our CSS code and we do that by clicking on the edit section button going into the advanced Tab and scrolling to the bottom to custom CSS now what you’re going to need to do is head over to my website where you’ll find this exact page and copy this section of code.
Once you have copied it paste it into your custom CSS box on the left hand side once you have pasted it in go back over to my website and scroll to the bottom of the page where you’ll see the CSS classes name now what you’re going to have to do is go back over to your website go into the advanced tab of the section and go into layout and it’s this here you’ll need to paste into your CSS classes of your section.
Once you have pasted it in the colour of your text Will Change indicating the code is working now you may not spot the change but it has gone from Pure White to an off cream so just to show you again I’m going to delete one of the letters to show you that it has changed depending on the colour of the background it depends on how much the colour of the text changes.
Now all that’s left to do is preview the page and we do that by clicking on the preview button next to the publish button in the bottom left hand side once the preview page has loaded all that’s left to do is scroll down our page and you’ll notice the colour will change of our text over each section and this also works over the top of our images remember you don’t have to make the section sticky this is just so you can see it in full effect this could quite easily be text over a static background or a static hero image.
However you decide to use it it’s entirely up to you but you will need Elementor Pro to be able to use the CSS function in Elementor if you haven’t got Elementor Pro there is a link in the top of the description below is an affiliate link it doesn’t cost you any more to use but it does give me a very small percentage of Elementor’s profits if you choose to sign up hopefully you have found this video useful if you have any questions please feel free to drop them in the comments box below.
Don’t forget to hit that like And subscribe button.
Thanks for watching.
I’ll see you in the next video.