00 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Black Friday / Cyber Monday
30% OFF all plugins
Including renewals
Nov 27–30, 2026
The Custom CSS & JS section allows you to inject custom styles and scripts to extend or modify your virtual tour behavior and appearance.

This tab allows you to add additional styling to your virtual tour elements or override existing ones. All styles added here are injected directly into a Shadow DOM. This means your custom styles are strictly isolated, they will only affect the virtual tour elements and will never conflict with your WordPress site’s global theme styles.
You can target specific virtual tour element classes to alter their default look, such as adding a clean white outline to your markers:
.hvr-layer.hvr-marker {
border: 4px solid #fff;
}You can completely customize entry and exit transitions for popups and tooltips. For more advanced effects, you can easily integrate keyframes or styles from external animation libraries like Animate.css:
.hvr-tooltip, .hvr-popup {
transition: all .3s ease;
opacity: 0;
transform: scale(0.5);
&.hvr-show {
opacity: 1;
transform: scale(1);
}
&.hvr-hide {
opacity: 0;
transform: scale(0.5);
}
}By utilizing the Custom CSS feature, you gain full granular control over the visual presentation of your virtual tour. Whether you need subtle design tweaks, brand-specific color matching, or advanced interactive animations, the isolated Shadow DOM architecture ensures your changes remain safe, performant, and completely independent of external website updates.
The Custom JS tab allows you to execute custom JavaScript code to extend your virtual tour functionality, listen to events, or integrate with third-party tools.
Your custom script runs inside a dedicated function context. You can access the core map instance using two identical methods: the "virtualtourApi" object or the context of the function (it’s bound to the virtual tour instance too).
console.log(virtualtourApi);
console.log(this);You can use the browser’s native IntersectionObserver API to track when the virtual tour becomes visible on the screen. This allows you to apply an entry animation class to the virtual tour elements, play it once, and then cleanly reset the state when it finishes.
Using this.viewportContainer, you can easily reference the container element of the current virtual tour instance:
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const container = this.viewportContainer;
let timeoutId = null;
container.addEventListener('animationend', function handler(e) {
if (e.animationName === 'fx-flash') {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
container.classList.remove("animate");
container.removeEventListener('animationend', handler);
}, 500);
}
})
container.classList.add("animate");
observer.unobserve(entry.target);
}
});
}, {
threshold: 0.1
});
observer.observe(this.viewportContainer);The Custom JS feature provides developer-level programmatic control over the virtual tour ecosystem. By utilizing virtualtourApi or this, you can create custom event listeners, dynamically manipulate layers, or link virtual tour interactions with external page elements.