Site logo

Archived topic

Floating Trust Badge on Bottom, Animation on Scroll

9 replies · Started by Robert on May 3, 2020

Viewing posts 1–10 of 10

Hi!

I want to add a "sticky, floating" trust badge like Trusted Shops at the bottom of every WooCommerce page. The trust badge graphic is actually an HTML code that updates the number of review stars. It is also linked to the trust portal, e.g. trustedshops.com.

The bagde should stay at the same viewpoint at all times, bottom right. It should only be visible on desktop.

Unfortunately, adding a sticky section to the global footer with Elementor theme builder interferes with sticky cart bottom panel.

Appreciate your ideas!

Robert

Hi David!

Thanks! The badge should have a fixed ('sticky') position: horizontally aligned right & vertically centered. Delayed follow on scroll would be bonus. How can that be achieved (with CSS)?

Position of hook 'after_footer'

Cheers,

Robert

Can you add the Element to the site so i can see what CSS is required.

You will be able to view the element here: <li>https://casimum.de/shop/</li>

Hi there,

Something like this?:

#shopauskunft-widget_wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

Hi Tom,

Thanks! I ended up using (relative) vertical centering:

#shopauskunft-widget_wrapper {
position: fixed;
top: 80%;
right: 1%;
z-index: 1;
transform: translate(0%, -50%);
}

Do you know the animation CSS to make it slide in from off right on page load, 2 sec. delay?

Cheers,

Robert

Thank you, David!

Glad we could be of help

This archived topic is closed to new replies.