Hi,

Today, many customers asked me how to create parallax background effect in L.THEME Joomla templates? So, I want to make this blog, this blog intro about how to create parallax background effect, not only for L.THEME Joomla templates, but also for all templates you want

1/ Create CSS for parallax background effect

(existed in file ‘template.css’ if you’re using L.THEME Joomla templates)

.lt-parallax {
background-attachment: fixed;
background-clip: padding-box !important;
background-color: rgba(0, 0, 0, 0);
background-image: url("../images/workspace_4.png");
background-origin: padding-box;
background-position: center center;
background-repeat: no-repeat;
background-size: cover !important;
color: #ffffff;
padding: 90px;
}

(if you’re using L.THEME Joomla templates, both version for Joomla Onepage templates and Premium Joomla templates, this CSS above is existed).

You can change background URL via attribute ‘background-image’, and other attributes you want in CSS class ‘lt-parallax’.

2/ Create HTML for parallax background effect

(if you’re using L.THEME Joomla templates, you can create Custom HTML Module and place code below, this module also existed if you use sample data in Quickstart package)

<div class=”lt-parallax”>
<h3 style=”text-align: center;”>Want to work with us? <span id=”cloak89446″><a href=”mailto:[email protected]”>Email us</a></span>, give us a call on 0123 561 574 or visit us.</h3>
</div>

This is simple HTML code that display Parallax in LT Business Joomla Onepage template, I use it as a sample case. Actually, the simple HTML for general case is just

<div class=”lt-parallax”>
…..
</div>

Hope it’s useful for everyone!

If you have any questions, please don’t hesitate to comment below or contact us via Contact Form.

2/5 - (1 vote)
Kelvin

The Big Summer Sale! Get 50% Off for everything on today, don't miss it. Coupon code: SUMMER50 Redeem Now
The Big Summer Sale! Get 50% Off for everything on today, don't miss it. Coupon code: SUMMER50 Redeem Now