shape divider delay

2 replies · opened Aug 2, 2023

Bbrano099Aug 2, 2023

Hello,

I have a shape divider in the page title and when the page loads the shape divider has a delay .. is it possible to remove the delay?

I would also like the shape divider to adjust its height to the media size and I don't have to load separately

here is live in my test page https://www.webgrafik.sk/olajos/poradenstvo.html

Thank you

B

<section class="page-title dark include-header page-title-center">
<div class="container">
<div class="page-title-row">
<div class="page-title-content">
<h1 data-animate="fadeInUp" data-delay="-5000" class="font-secondary">Poradenstvo a školenia - Olajos</h1>
</div>
</div>
</div>
<div class="shape-divider d-block d-sm-none" data-shape="wave-4" data-position="bottom" data-height="50"></div>
<div class="shape-divider d-none d-sm-block w-100" data-shape="wave-4" data-position="bottom" data-height="100"></div>
</section>

SSemicolon WebSTAFFAug 3, 2023

Hello,

Since Shape Divider is loaded using JS, there will always be a minor delay. You can consider finding the following code in the js/module.shapedivider.js File:
[ch_pre type="js"]setTimeout( function() {
element.querySelector('svg').classList.add( 'op-1' );
}, 500);[/ch_pre]

and change 500 to 0. Additionally, you can also consider using this code directly:
[ch_pre]
.shape-divider.shape-divider-1 svg,
.shape-divider.shape-divider-2 svg {
width: calc( 100% + 1.5px );
height: 50px;
}

.shape-divider.shape-divider-2 svg {
height: 100px;
}

.shape-divider.shape-divider-1 .shape-divider-fill,
.shape-divider.shape-divider-2 .shape-divider-fill {
fill: null;
}

[/ch_pre]

This will eliminate the delay. Then you can use height: 100%; in the CSS Codes above according to your needs.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Bbrano099Aug 4, 2023

perfeect ... THANK YOU

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard