Uses xjs.draw() to animate the ring + mark strokes, and a spring entrance to mimic SweetAlert-like feedback.
xjs.layer({
title: 'Success',
text: 'SVG draw + spring',
icon: 'success',
iconAnimation: true,
popupAnimation: true
});
<label><input type="checkbox" checked> iconAnimation</label> <label><input type="checkbox" checked> popupAnimation</label>
/* Icon styling lives inside layer.js */