Free
Features
Everknit Features
A features block extracted from the Everknit template, available in Tailwind CSS.
0
20
A features block extracted from the Everknit template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with All-Access
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Everknit Features | Tailwind CSS UI Block</title>
<meta name="description" content="A features block extracted from the Everknit template, available in Tailwind CSS.">
<meta name="keywords" content="Everknit, Tailwind CSS template, HTML website template, ecommerce template, apparel store, clothing shop, streetwear brand, product filters, responsive fashion design">
<meta name="author" content="Let's templates">
<link rel="canonical" href="">
<meta property="og:type" content="product">
<meta property="og:site_name" content="Let's templates">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="">
<meta property="og:title" content="Everknit | Tailwind CSS Apparel Ecommerce Template">
<meta property="og:description" content="A bold Swiss-style Tailwind CSS ecommerce template for apparel basics brands, streetwear labels, and online clothing stores with filters, lookbooks, and a full cart flow.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Everknit template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Everknit | Tailwind CSS Apparel Ecommerce Template">
<meta name="twitter:description" content="A bold Swiss-style Tailwind CSS ecommerce template for apparel basics brands, streetwear labels, and online clothing stores with filters, lookbooks, and a full cart flow.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Everknit template preview">
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: '#0d0d0d',
paper: '#fafafa',
mist: '#f1f1f1',
ember: '#f59e2e',
apricot: '#fcc58f',
iris: '#8b5cf6',
citron: '#c5e03a'
},
fontFamily: {
sans: ['"Inter Tight"', 'ui-sans-serif', 'system-ui', 'sans-serif']
}
}
}
};
</script>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
html { scroll-behavior: smooth; }
body { font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.wordmark-track { animation: wordmark-slide 38s linear infinite; }
@keyframes wordmark-slide { to { transform: translateX(-50%); } }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
[data-look-tile] { transition: opacity .4s ease, filter .4s ease, transform .4s ease; }
[data-look-tile].is-dimmed { opacity: .28; filter: grayscale(1); }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.wordmark-track { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-paper text-ink antialiased overflow-x-hidden">
<!-- block:start features -->
<section id="craft" class="bg-[#0b0b0b] text-white" data-tee-slider>
<div class="mx-auto max-w-[1920px] px-5 lg:px-[1.1vw] pt-10 md:pt-[2.8vw]">
<div class="grid gap-6 md:grid-cols-4 md:gap-[1.1vw]">
<div class="flex items-center justify-between md:block">
<p class="text-sm lg:text-[1.2vw] md:pt-[0.6vw]">/04</p>
<div class="flex gap-3 md:mt-[21vw] md:gap-[0.9vw]">
<button type="button" data-tee-prev class="inline-flex h-11 w-11 lg:h-[3.1vw] lg:w-[3.1vw] items-center justify-center rounded-full border border-white/70 transition hover:bg-white hover:text-ink" aria-label="Previous colour"><i class="fa-solid fa-arrow-left"></i></button>
<button type="button" data-tee-next class="inline-flex h-11 w-11 lg:h-[3.1vw] lg:w-[3.1vw] items-center justify-center rounded-full border border-white/70 transition hover:bg-white hover:text-ink" aria-label="Next colour"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
<h2 class="md:col-span-3 text-[13.5vw] md:text-[10.4vw] font-medium uppercase leading-[0.88] tracking-[-0.045em]">The craft<br>of daily<br>softness</h2>
</div>
</div>
<div data-tee-track class="no-scrollbar mt-10 md:mt-[3vw] flex snap-x snap-mandatory overflow-x-auto scroll-smooth pb-10 md:pb-[3vw]">
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-0" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#c5e03a"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-0)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Citron</span>
<span>$48</span>
</span>
</a>
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-1" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#8b5cf6"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-1)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Iris</span>
<span>$48</span>
</span>
</a>
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-2" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#f59e2e"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-2)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Ember</span>
<span>$48</span>
</span>
</a>
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-3" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#ececec"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-3)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Chalk</span>
<span>$44</span>
</span>
</a>
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-4" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#3b6cf6"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-4)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Cobalt</span>
<span>$48</span>
</span>
</a>
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-5" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#e5463b"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-5)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Scarlet</span>
<span>$48</span>
</span>
</a>
<a href="boxy-cotton-tee.html" data-tee class="group w-[78%] shrink-0 snap-start px-4 sm:w-1/2 md:w-1/3 md:px-[1.8vw]">
<svg viewBox="0 0 400 400" class="mx-auto w-full max-w-[26vw] min-w-[220px] transition duration-500 group-hover:-translate-y-2" aria-hidden="true">
<defs>
<linearGradient id="tee-shade-6" x1="0" x2="1" y1="0" y2="0">
<stop offset="0" stop-color="#000" stop-opacity=".22"/>
<stop offset=".22" stop-color="#000" stop-opacity="0"/>
<stop offset=".78" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".22"/>
</linearGradient>
</defs>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="#3a3a3a"/>
<path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="url(#tee-shade-6)"/>
<path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".28"/>
<path d="M146 34 C170 62 230 62 254 34" stroke="#000" stroke-opacity=".18" stroke-width="7" fill="none"/>
<path d="M80 162 L100 62 M320 162 L300 62 M124 210 C132 270 126 320 132 372 M278 200 C270 260 278 320 272 372" stroke="#000" stroke-opacity=".08" stroke-width="3" fill="none"/>
</svg>
<span class="mt-4 flex items-center justify-between text-sm lg:text-[1vw] text-white/60">
<span>Boxy Tee — Graphite</span>
<span>$44</span>
</span>
</a>
</div>
</section>
<!-- block:end features -->
<script>
document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
const menu = document.getElementById(button.getAttribute("aria-controls"));
if (!menu) return;
button.addEventListener("click", () => {
const open = button.getAttribute("aria-expanded") === "true";
button.setAttribute("aria-expanded", String(!open));
menu.classList.toggle("hidden", open);
});
});
(() => {
const read = (key, fallback) => { try { return Number(localStorage.getItem(key) ?? fallback); } catch (e) { return fallback; } };
const write = (key, value) => { try { localStorage.setItem(key, String(value)); } catch (e) {} };
const paint = () => {
document.querySelectorAll("[data-cart-count]").forEach((el) => { el.textContent = read("everknit-cart", 2); });
document.querySelectorAll("[data-wish-count]").forEach((el) => { el.textContent = read("everknit-wish", 3); });
};
window.everknitStore = { read, write, paint };
paint();
document.addEventListener("click", (event) => {
const add = event.target.closest("[data-add-cart]");
if (add) {
write("everknit-cart", read("everknit-cart", 2) + 1);
paint();
add.classList.add("bg-ink", "text-white");
setTimeout(() => add.classList.remove("bg-ink", "text-white"), 600);
}
const wish = event.target.closest("[data-wish]");
if (wish) {
const saved = wish.getAttribute("aria-pressed") !== "true";
wish.setAttribute("aria-pressed", String(saved));
const icon = wish.querySelector("[data-wish-icon]");
if (icon) { icon.classList.toggle("fa-solid", saved); icon.classList.toggle("fa-regular", !saved); }
write("everknit-wish", Math.max(0, read("everknit-wish", 3) + (saved ? 1 : -1)));
paint();
}
});
})();
document.querySelectorAll("[data-swatch-card]").forEach((card) => {
const target = card.querySelector("[data-swatch-target]");
card.querySelectorAll("[data-swatch]").forEach((swatch) => {
swatch.addEventListener("click", () => {
card.querySelectorAll("[data-swatch]").forEach((other) => other.setAttribute("aria-pressed", String(other === swatch)));
if (target) target.style.color = swatch.dataset.swatch;
});
});
});
document.querySelectorAll("[data-shop-filter]").forEach((form) => {
const section = form.closest("section");
const items = [...section.querySelectorAll("[data-filter-items] [data-product]")];
const empty = section.querySelector("[data-filter-empty]");
const count = section.querySelector("[data-filter-count]");
const dot = form.querySelector("[data-color-dot]");
const dotColors = { orange: "#f59e2e", yellow: "#f5c81e", all: "conic-gradient(#f59e2e 0 50%, #f5c81e 50% 100%)" };
const inRange = (price, range) => range === "all" || (range === "under-100" && price < 100) || (range === "100-150" && price >= 100 && price <= 150) || (range === "over-150" && price > 150);
const apply = () => {
const data = new FormData(form);
const q = String(data.get("q") || "").trim().toLowerCase();
let shown = 0;
items.forEach((item) => {
const match = (data.get("category") === "all" || item.dataset.category === data.get("category"))
&& (data.get("size") === "all" || item.dataset.sizes.split(" ").includes(data.get("size")))
&& (data.get("color") === "all" || item.dataset.color === data.get("color"))
&& inRange(Number(item.dataset.price), data.get("price"))
&& (!q || item.dataset.name.includes(q) || item.dataset.category.includes(q));
item.hidden = !match;
if (match) shown += 1;
});
if (empty) empty.hidden = shown > 0;
if (count) count.textContent = `${shown} ${shown === 1 ? "piece" : "pieces"}`;
if (dot) dot.style.background = dotColors[data.get("color")] || dotColors.all;
};
form.addEventListener("input", apply);
form.addEventListener("change", apply);
section.querySelectorAll("[data-filter-clear]").forEach((button) => button.addEventListener("click", () => {
form.reset();
apply();
}));
apply();
});
document.querySelectorAll("[data-look-filter]").forEach((group) => {
const tiles = group.closest("section").querySelectorAll("[data-look-tile]");
group.addEventListener("click", (event) => {
const button = event.target.closest("[data-look]");
if (!button) return;
const filter = button.dataset.look;
group.querySelectorAll("[data-look]").forEach((chip) => chip.setAttribute("aria-pressed", String(chip === button)));
tiles.forEach((tile) => tile.classList.toggle("is-dimmed", filter !== "all" && !tile.dataset.tags.split(" ").includes(filter)));
});
});
document.querySelectorAll("[data-tee-slider]").forEach((slider) => {
const track = slider.querySelector("[data-tee-track]");
const step = () => (track.querySelector("[data-tee]")?.offsetWidth || track.clientWidth);
const move = (direction) => {
const max = track.scrollWidth - track.clientWidth - 4;
if (direction > 0 && track.scrollLeft >= max) return track.scrollTo({ left: 0 });
if (direction < 0 && track.scrollLeft <= 4) return track.scrollTo({ left: track.scrollWidth });
track.scrollBy({ left: direction * step() });
};
slider.querySelector("[data-tee-prev]")?.addEventListener("click", () => move(-1));
slider.querySelector("[data-tee-next]")?.addEventListener("click", () => move(1));
});
document.querySelectorAll("[data-copy-code]").forEach((button) => {
button.addEventListener("click", () => {
const code = button.dataset.copyCode;
navigator.clipboard?.writeText(code).catch(() => {});
button.textContent = "Copied";
setTimeout(() => { button.textContent = code; }, 1400);
});
});
(() => {
const items = document.querySelectorAll("[data-reveal]");
const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
if (!items.length || skip) return;
document.documentElement.classList.add("reveal-ready");
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
});
}, { rootMargin: "0px 0px -10% 0px" });
items.forEach((item) => observer.observe(item));
})();
</script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>
Premium
E-commerce
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.