Chaining
With Sniper, you can chain together actions/methods.
Sniper Method Chaining
$('.toast-container > div').click(function(e){
this.width('10rem').height(200);
});$('.wrapper').css({
display: 'flex',
flexDirection: 'column',
gap: 20,
padding: 10,
}).children.css({
border: '1px solid grey',
padding: 10,
borderRadius: 4,
cursor: 'pointer',
height: 18,
overflow: 'hidden'
});Last updated