Education & Technology Consulting
Strategic advice · Independent expertise · United Kingdom
New site coming soon • Get in touch
(function() {
function twinkle() {
var logo = document.getElementById(‘k4-logo’);
if (!logo) return;
var start = null;
var duration = 2800;
function step(ts) {
if (!start) start = ts;
var p = ((ts – start) % duration) / duration;
// Gentle sine wave: opacity between 0.35 and 1.0
var op = 0.35 + 0.65 * (0.5 + 0.5 * Math.sin(p * Math.PI * 2 – Math.PI / 2));
logo.style.opacity = op;
requestAnimationFrame(step);
}
requestAnimationFrame(step);
}
if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, twinkle);
} else {
twinkle();
}
})();