Sha256: a2a641735ce79e11cdeaf411630c6508fb0b6f66447036a70fc4014e307d1170
Contents?: true
Size: 1.2 KB
Versions: 19
Compression:
Stored size: 1.2 KB
Contents
Roller.default.over = (tl, input, value, output, index) => { tl.pause(); input.map((index,value) => { if ($(value).hasClass("active")) { Save.input = value; Save.index = index; HandleClass([value,output[index]],'remove'); } }); HandleClass([value,output[index]],'add'); } Roller.default.out = (tl, input, output) => { input.map((index,value) => { if ($(value).hasClass("active")) { HandleClass([value,output[index]],'remove'); } }); HandleClass([Save.input,output[Save.index]],'add'); tl.play(); } Roller.default.tl = (input, output) => { let tl = gsap.timeline({ repeat : -1 }); input.map((index,value) => { let live = ""; $(value.classList).map((index,value) => { if (value.startsWith("title-")) { live = value.slice(6); } }); tl .call(HandleClass,[value,'add']) .call(HandleClass,[output[index],'add']) .call(HandleClass,[value,'remove'],"+=1") .call(HandleClass,[output[index],'remove']); $(value).hover(function(){ Roller.default.over(tl, input, value, output, index); }, function() { Roller.default.out(tl, input, output); }); }); }
Version data entries
19 entries across 19 versions & 1 rubygems