<div class="mx-5 my-5">
<img src="https://designertofullstack.com/wp-content/uploads/2021/10/document-thumbnail-example.jpg" class="shadow border mb-2 rotate-3">
</div>
.rotate-3 {
    transform: rotate( 3deg);
}

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.