Sha256: 1d65e1b1bf77cb72bfc5a2f7db4edc859bfa73ebd346537b728c9e870243b81d
Contents?: true
Size: 758 Bytes
Versions: 23
Compression:
Stored size: 758 Bytes
Contents
const YouSaved = value => { let target = $(".block.form-alert",value), speed = 0.2, border = tinycolor($(target).css("border-color")).toHexString(), backg = tinycolor($(target).css("background-color")).toHexString(), tl = gsap.timeline({ repeat : -1, repeatDelay : speed * 8 }); tl .set(target,{ backgroundColor : tinycolor(backg).darken(5), borderColor : tinycolor(border).darken(10), }) .set(target,{ clearProps: "all", delay : speed }) .set(target,{ backgroundColor : tinycolor(backg).darken(5), borderColor : tinycolor(border).darken(10), delay : speed }) .to(target,{ backgroundColor : backg, borderColor : border, duration : speed * 4, delay : speed }); }
Version data entries
23 entries across 23 versions & 1 rubygems