Buttons ('-' * 7) Buttons made using HTML and LESS. Addable classes, comes in a variety of sizes and colors.
Forked from Taeha's Pen Buttons.
A Pen by Captain Anonymous on CodePen.
let fadeOut = (target, duration=500) => { | |
target.style.transitionProperty = 'opacity'; | |
target.style.transitionDuration = duration + 'ms'; | |
target.style.opacity = 0; | |
window.setTimeout( () => { | |
target.style.display = 'none'; | |
target.style.removeProperty('opacity'); | |
target.style.removeProperty('transition-duration'); | |
target.style.removeProperty('transition-property'); |