Home

Rotate images

0deg 10px
Image 1 Image 2 Image 3 Image 4 Image 5 Image 6

$('#rotate').on('input', function () {
    const value = $(this).val();
    // rotate all images
    $('main img').css('transform', `rotate(${value}deg)`);
});

$('#shadow')
    .on('input', function () {
        const value = $(this).val();
        // add a drop shadow to all images
        $('main img').css('filter', `drop-shadow(0 0 ${value}px rgba(0, 0, 0, .8)`);
    })
    .trigger('input'); // trigger the input event when (re)loading the page