Darilni boni
1) active = 1"
@mouseleave="active = 0"
@touchstart="touchX = $event.changedTouches[0].clientX; touchY = $event.changedTouches[0].clientY"
@touchend="
const dx = $event.changedTouches[0].clientX - touchX;
const dy = $event.changedTouches[0].clientY - touchY;
if (count > 1 && Math.abs(dx) > 40 && Math.abs(dx) > Math.abs(dy)) {
$event.preventDefault();
active = dx < 0 ? (active + 1) % count : (active - 1 + count) % count;
}
"
class="relative w-full overflow-hidden aspect-4/5">
1) active = 1"
@mouseleave="active = 0"
@touchstart="touchX = $event.changedTouches[0].clientX; touchY = $event.changedTouches[0].clientY"
@touchend="
const dx = $event.changedTouches[0].clientX - touchX;
const dy = $event.changedTouches[0].clientY - touchY;
if (count > 1 && Math.abs(dx) > 40 && Math.abs(dx) > Math.abs(dy)) {
$event.preventDefault();
active = dx < 0 ? (active + 1) % count : (active - 1 + count) % count;
}
"
class="relative w-full overflow-hidden aspect-4/5">
1) active = 1"
@mouseleave="active = 0"
@touchstart="touchX = $event.changedTouches[0].clientX; touchY = $event.changedTouches[0].clientY"
@touchend="
const dx = $event.changedTouches[0].clientX - touchX;
const dy = $event.changedTouches[0].clientY - touchY;
if (count > 1 && Math.abs(dx) > 40 && Math.abs(dx) > Math.abs(dy)) {
$event.preventDefault();
active = dx < 0 ? (active + 1) % count : (active - 1 + count) % count;
}
"
class="relative w-full overflow-hidden aspect-4/5">
Želite biti obveščeni o nasvetih in novostih naše ponudbe?
Naročite se na naše novičke in bodite vedno na tekočem.