WebSite X5Help Center

 
Peter P.
Peter P.
User

Slider position of the Before/After Object  en

Autore: Peter P.
Visite 1119, Followers 1, Condiviso 0  

Hi

I’m using the before / after comparison object, the slider bar always starts in the centre position when the page is loaded does anyone know anyway so the slider starts at the far left position.

Kind Regards

Peter

Postato il
3 RISPOSTE
Aleksej H.
Aleksej H.
Moderator

Hello.Try adding these styles (how to add styles):

.container.before-after-container.beforeAfter-hover .img2.hover {
width: 0% !important;
}

.container.before-after-container.beforeAfter-hover .border {
left: 0px !important;
}

Leggi di più
Postato il da Aleksej H.
Peter P.
Peter P.
User
Autore

Hi Aleksej

Thank you for your help, I have tried inserting your code in to the expert section on the page properties in “Before closing the HEAD tag” , but I have not been able to get the code to work, I am using the fade option in the slider style so I tried changing “hover” to “fade” but the slider position is still centre of the image when the page is loaded. Can you offer any further advice.

Kind Regards

Peter.

.container.before-after-container.beforeAfter-hover .img2.hover {
width: 0% !important;
}
.container.before-after-container.beforeAfter-hover .border {
left: 0px !important;
}

Leggi di più
Postato il da Peter P.
Aleksej H.
Aleksej H.
Moderator

Please give a link to the page of the site where I can see this object.

Leggi di più
Postato il da Aleksej H.