# InstantToolsPro — tools.css Integration Guide ## `/assets/css/tools.css` — Sabhi Tools Mein Use Karne Ka Tarika --- ## STEP 1 — CSS FILE PLACE KARO File rakho yahan: ``` /assets/css/tools.css ``` --- ## STEP 2 — HAR TOOL PAGE KE `
` MEIN ADD KARO Ye line **header.php** mein add karo (ek baar, sab tools mein auto-apply ho jayegi): ```html ``` Ya agar per-tool control chahiye, tab har tool ki PHP file ke `` mein: ```html ``` --- ## STEP 3 — TOOL-SPECIFIC ACCENT COLOR SET KARO Har tool ke `` tag par ek class add karo: ```html ``` --- ## STEP 4 — SCROLL REVEAL JS SNIPPET Ye **ek baar** apne `main.js` ya footer mein add karo. Ye bounce rate reduce karta hai — user scroll karta hai to elements animate hote hain. ```javascript // Scroll Reveal — itp-reveal class wale elements animate hote hain (function() { if (!('IntersectionObserver' in window)) return; var els = document.querySelectorAll('.itp-reveal'); if (!els.length) return; var io = new IntersectionObserver(function(entries) { entries.forEach(function(entry) { if (entry.isIntersecting) { entry.target.classList.add('itp-visible'); io.unobserve(entry.target); } }); }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' }); els.forEach(function(el) { io.observe(el); }); })(); ``` --- ## STEP 5 — STICKY MOBILE CTA BAR JS SNIPPET Ye bhi `main.js` ya har tool ki script mein add karo: ```javascript // Sticky mobile bar — upload ke baad hide hota hai (function() { function isMobile() { return window.innerWidth < 640; } var stickyBar = document.querySelector('.itp-sticky-bar'); if (!stickyBar) return; function showSticky() { if (!isMobile()) return; document.body.classList.add('itp-sticky-active'); stickyBar.style.display = 'block'; stickyBar.removeAttribute('aria-hidden'); } function hideSticky() { document.body.classList.remove('itp-sticky-active'); stickyBar.style.display = 'none'; stickyBar.setAttribute('aria-hidden', 'true'); } // Sticky CTA clicks file input var stickyCta = stickyBar.querySelector('.itp-sticky-cta'); var fileInput = document.querySelector('input[type="file"]'); if (stickyCta && fileInput) { stickyCta.addEventListener('click', function() { fileInput.click(); }); } // Show on load if mobile if (isMobile()) showSticky(); // Hide after file upload (call hideSticky() from your upload success handler) window.itpHideSticky = hideSticky; window.itpShowSticky = showSticky; })(); ``` Phir apne upload success handler mein call karo: ```javascript // Jab file upload ho jaye: if (window.itpHideSticky) window.itpHideSticky(); // Jab reset ho jaye: if (window.itpShowSticky) window.itpShowSticky(); ``` --- ## STEP 6 — FAQ ACCORDION JS (optional) ```javascript // FAQ accordion document.querySelectorAll('.itp-faq-q').forEach(function(btn) { btn.addEventListener('click', function() { var item = btn.closest('.itp-faq-item'); var isOpen = item.classList.contains('itp-open'); // Close all document.querySelectorAll('.itp-faq-item').forEach(function(el) { el.classList.remove('itp-open'); }); // Open clicked if (!isOpen) item.classList.add('itp-open'); }); }); ``` --- ## TOOL PAGE HTML TEMPLATE (Copy-paste ready) ```phpShort description. No signup needed.
Up to 100 MB · All browsers supported
Upload PDF Now🔒 Files deleted automatically after 1 hour
Drag & drop your PDF or click to upload. Up to 100 MB supported.
Select your settings and preferences for the output.
Click Download and get your processed file in seconds.
No signup, no watermark, files auto-deleted after 1 hour.
SEO content here...