Catering (3)
Coffeedog na Animefest 2026 – výběrová káva uprostřed největší anime akce v ČR
Letos nás najdeš přímo v areálu festivalu, kde budeme po celý víkend připravovat kávu pro…

Coffeedog míří na Doggoland! 🐾☕
Máme skvělou novinku – Coffeedog bude součástí II. ročníku Doggoland Day Olomouc 2025, který se…

Coffeedog na Doggoland day Olomouc 2025 Budeme na Barum Rally Zlín 2025! Přijďte si dát kafe mezi závody!
Barum Rally Zlín je jednou z největších motoristických akcí v Česku – a letos u…

Barum Rally Zlín 2025 – závody a káva s Coffeedog
Read
<?php
wp_enqueue_script('brt-gsap');
?>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Check if it's a touch device
const isTouchDevice = 'ontouchstart' in window;
const createCursorFollower = () => {
const $el = document.querySelector('.bt-cursor-follower');
// Each time the mouse coordinates are updated,
// we need to pass the values to gsap in order
// to animate the element
window.addEventListener('mousemove', (e) => {
const { target, clientX, clientY } = e;
// Check if target is inside elements with class .bt-blog-card8
const isTargetBlogCard = target?.closest('.bt-blog-card8');
// GSAP config
gsap.to($el, {
x: clientX - 48, // Adjusted to position cursor in the middle
y: clientY - 48, // Adjusted to position cursor in the middle
duration: 0.7,
ease: 'power4', // More easing options here: https://gsap.com/docs/v3/Eases/
opacity: isTargetBlogCard ? 1 : 0,
transform: `scale(${isTargetBlogCard ? 1 : 0})`,
});
});
// Hiding the cursor element when the mouse cursor
// is moved out of the page
document.addEventListener('mouseleave', (e) => {
gsap.to($el, {
duration: 0.7,
opacity: 0,
transform: 'scale(0)',
});
});
};
// Only invoke the function if it isn't a touch device
if (!isTouchDevice) {
createCursorFollower();
}
});
</script>