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

Version Path
futuro-1.1.8 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.7 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.6 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.5 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.4 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.3 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.2 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.1 assets/js/footer/custom/5_YouSaved.js
futuro-1.1.0 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.9 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.8 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.7 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.6 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.5 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.4 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.3 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.2 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.1 assets/js/footer/custom/5_YouSaved.js
futuro-1.0.0 assets/js/footer/custom/5_YouSaved.js
futuro-0.9.9 assets/js/footer/custom/5_YouSaved.js